Giter Club home page Giter Club logo

covid-19-elk's People

Contributors

marius-avram avatar mateibm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

covid-19-elk's Issues

Logstash Ruby filter error

Hi Siscale Team --

I'm using a vanilla, RPM-based distribution of Elastic Stack, and seeing the following error when starting Logstash with the logstash-github-covid-19-daily-reports-template.conf config loaded:

[2020-05-24T16:36:50,741][ERROR][logstash.filters.ruby ][main] Ruby exception occurred: A JSON text must at least contain two octets!

I've updated the relevant parts of the config as it suggests. Here are the changed bits:

@github_stored_hashes_path = "/tmp/covid-19-hashes.json" 
hosts => "my.elastic.host:9200" 
user => "${LOGSTASH_USERNAME}" (in /etc/default/logstash)
password => "${LOGSTASH_PASSWORD}" (in /etc/default/logstash)

The hashes file is chown'ed logstash:logstash and chmod'ed 644. Most of the time, when I start Logstash, I see just one document created:

{
  "_index": "covid-19-live-update",
  "_type": "_doc",
  "_id": "d7yER3IBTwALIWCBBH4E",
  "_version": 1,
  "_score": null,
  "_source": {
    "tags": [
      "check_github",
      "_rubyexception"
    ],
    "message": "first-time-run",
    "@version": "1",
    "@timestamp": "2020-05-24T16:28:52.700Z",
    "host": "my.server.com",
    "sequence": 0
  },
  "fields": {
    "@timestamp": [
      "2020-05-24T16:28:52.700Z"
    ]
  },
  "sort": [
    1590337732700
  ]
}

Once, when starting Logstash, I see something different than the above. http.poller.* fields all had content, and the message field itself contained HTML (appearing to be the actual HTML from the JHU CSV repo). Though, this document also has _rubyexception tag.

The last thing I can think to mention is that I initially missed loading the index template prior to starting Logstash. I am not certain that really matters. I completely deleted the index created with the single document, delete the index pattern, and started from the top. Got the same result.

Here's the basics of my environment.

  • CentOS 7.7
  • OpenJDK 1.8.0_242
  • Elastic Stack 7.6.2

The system itself is somewhat anorexic (4GB RAM), but not running any production workloads otherwise.

Thanks for your help. The work is beautiful!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.