Giter VIP home page Giter VIP logo

Comments (4)

jarpy avatar jarpy commented on July 20, 2024

Working on a patch.

This commit demonstrates a test and a (brutal, incorrect) patch that makes it pass. 417d993

Essentially, the default value of break_on_match = true makes grok bail out after the first array element is evaluated.

from logstash-filter-grok.

jarpy avatar jarpy commented on July 20, 2024

Is break_on_match intended to be mainly a performance optimization? If so, should it default to false, so as not to be a premature one?

from logstash-filter-grok.

jordansissel avatar jordansissel commented on July 20, 2024

It wasn't chosen as a performance optimization. It was chosen because it is common to have applications with hundreds or thousands of unique log entries (Elasticsearch has over 1300 of them). This commonality allows you to write specific patterns to parse certain messages you care the most about and have a fall-back case (or several fall-back attempts).

This example also follows with things like syslog-ish formatted messages. One message you may care about the details:

Aug  7 14:10:27 crinkle sshd[10094]: Invalid user foo from ::1

And maybe parse this specially to indicate what user foo failed to login. Other syslog messages you may haven't seen yet or may not care to do additional parsing, but would like to have at least the common header (timestamp, host, app) parsed.

from logstash-filter-grok.

jarpy avatar jarpy commented on July 20, 2024

Thanks Jordan. I get it now.

Appreciate you taking the time.

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.