Coder Social home page Coder Social logo

Comments (4)

jordansissel avatar jordansissel commented on June 25, 2024

@seang-es Any chance you can get me a sample log? (anonymized is ok). I'll write a test case for it and we can move forward with the fix.

from logstash-patterns-core.

jordansissel avatar jordansissel commented on June 25, 2024

(I'm open to merging the pattern fix first, btw, just want to get traction on me adding tests)

from logstash-patterns-core.

jar00n avatar jar00n commented on June 25, 2024

Sean opened this up from my ticket to ES support. An example log line:

<164>May 13 2015 11:56:41 asa-5510 : %ASA-4-106023: Deny tcp src dmz:192.168.xx.xx/xxxx dst pre:192.168.xx.xx/xxxx by access-group "dmz_access_in" [0x81470ed6, 0x0]

My change to the pattern:

$ diff -bur <(grep CISCO_TAGGED /opt/logstash/patterns/firewalls) <(grep CISCO_TAGGED /opt/logstash/patterns/sv)

--- /dev/fd/63 2015-05-04 13:59:00.131534784 -0500
+++ /dev/fd/62 2015-05-04 13:59:00.127507381 -0500
@@ -1 +1 @@
-CISCO_TAGGED_SYSLOG ^<%{POSINT:syslog_pri}>%{CISCOTIMESTAMP:timestamp}( %{SYSLOGHOST:sysloghost})?: %%{CISCOTAG:ciscotag}:
+SV_CISCO_TAGGED_SYSLOG ^<%{POSINT:syslog_pri}>%{CISCOTIMESTAMP:timestamp} (%{SYSLOGHOST:sysloghost})? : %%{CISCOTAG:ciscotag}:

The pattern is missing the space after the hostname match '?:' vs '? :'. Though allowing an optional space is likely better, we don't ship any messages without a hostname in our firewalls.

from logstash-patterns-core.

roderickm avatar roderickm commented on June 25, 2024

This is a duplicate of #2.

Also, I signed the CLA back in January, but the cla_check test is still failing because the work email address with which I signed the CLA is a secondary address on my github account. See comments on elastic/logstash#2102 for more detail.

from logstash-patterns-core.

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.