Giter VIP home page Giter VIP logo

Comments (2)

naisanza avatar naisanza commented on July 20, 2024

Using (?<firstSeen>%{DATE} %{HOUR}:%{MINUTE}) works!

However, I'm getting _grokparsefailure tags, and out of about 33K events, I'm getting back a handful of 12 or 22 events indexed. I added the grok match pattern to the filter, so I can check it against the message using http://grokdebug.herokuapp.com/, but the pattern is matching the message just fine. Hm, I'm not sure what's causing the parsing issues. I'll have to see if logstash --debug tells me anything.

Edit: Looks like I'm getting a lot of "Failed to flush outgoing items" warnings:

Failed to flush outgoing items {:outgoing_count=>21, :exception=>#<NoMethodError: undefined method `[]' for nil:NilClass>, :backtrace=>["/home/user/logstash/elk/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-0.2.4-java/lib/logstash/outputs/elasticsearch.rb:464:in `flush'", "/home/user/logstash/elk/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.19/lib/stud/buffer.rb:219:in `buffer_flush'", "org/jruby/RubyHash.java:1341:in `each'", "/home/user/logstash/elk/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.19/lib/stud/buffer.rb:216:in `buffer_flush'", "/home/user/logstash/elk/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.19/lib/stud/buffer.rb:112:in `buffer_initialize'", "org/jruby/RubyKernel.java:1507:in `loop'", "/home/user/logstash/elk/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.19/lib/stud/buffer.rb:110:in `buffer_initialize'"], :level=>:warn, :file=>"stud/buffer.rb", :line=>"231", :method=>"buffer_flush"}

I don't know if this might be an issue with Oracle Java 1.8.0_45 but I'm going to try OpenJKD, again.

root@elk:/home/user# java -version
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.10.2)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)

Edit 2: Still having "Failed to flush outgoing items" warnings

Failed to flush outgoing items {:outgoing_count=>21, :exception=>#<NoMethodError: undefined method `[]' for nil:NilClass>, :backtrace=>["/home/user/logstash/elk/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-0.2.4-java/lib/logstash/outputs/elasticsearch.rb:464:in `flush'", "/home/user/logstash/elk/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.19/lib/stud/buffer.rb:219:in `buffer_flush'", "org/jruby/RubyHash.java:1341:in `each'", "/home/user/logstash/elk/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.19/lib/stud/buffer.rb:216:in `buffer_flush'", "/home/user/logstash/elk/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.19/lib/stud/buffer.rb:112:in `buffer_initialize'", "org/jruby/RubyKernel.java:1507:in `loop'", "/home/user/logstash/elk/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.19/lib/stud/buffer.rb:110:in `buffer_initialize'"], :level=>:warn, :file=>"stud/buffer.rb", :line=>"231", :method=>"buffer_flush"}

Edit 3: The problem seems to be with memory or a grok filter.

from logstash-filter-grok.

naisanza avatar naisanza commented on July 20, 2024

The problem was with using add_field in grok with type => "value". It apparently will throw bulk error messages if you use the field type.

from logstash-filter-grok.

Related Issues (20)

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.