Comments (5)
Hi Martin, thanks for your interest.
I don't have any patterns for local delivery because I don't use that. So no sample log lines, and no personal need. I'll add the examples you provided. Supporting them is easy since they are already covered by the default key-value parsing.
from postfix-grok-patterns.
The changes in #43 should work for logstash users, since the logstash config uses key-value processing after the grok work. I don't know if this solution works for fluentd (which you seem to use).
from postfix-grok-patterns.
Thank you, Tom.
Hmmm, does this also work with the delays=0.04/0/0/0.03 key value? Cause there it has several values in one key, my attempt at parsing them splitted them up like you did for the qmgr lines.
My filters parsed it as:
"postfix_delay_total":"1.1","postfix_delay_before_qmgr":0.98,"postfix_delay_in_qmgr":0.06,"postfix_delay_conn_setup":0,"postfix_delay_transmission":0.03,"postfix_status":"sent"
(okay, I don´t know whether the labels for the attributes are correct, I just reused your qmgr stuff, but I can look this up)
I am trying your pattern nevertheless as it would not fail on my second example line.
from postfix-grok-patterns.
Okay, now I get it. This parsing seems to be stacked. qmgr uses the same way. And well, it works and separates the delays nicely.
BTW I am preparing slides for a logfile analysis training, so I am looking at both fluentd and logstash. I don´t know yet, whether fluent-plugin-grok-parser can take these postfix patterns yet, but I may try.
from postfix-grok-patterns.
I guess the patterns should be fine as grok is a generic library. But the stacked approach and the k/v parsing is built as logstash functionality, and I have no idea if you can replicate that using fluentd.
Good luck with your training! :)
Regards,
Tom
from postfix-grok-patterns.
Related Issues (20)
- Index Pattern HOT 8
- Could not index event to Elasticsearch HOT 2
- Postifx polluted fields HOT 4
- Polluted fields like #143 HOT 4
- No smtpd NOQUEUE mails in log HOT 5
- Integration with rsyslog HOT 4
- Not getting new columns with aggregation
- Pattern for smtp / PIX workarounds missing? HOT 2
- warn_if_reject
- Fields are not loaded if an aggregate filter is used HOT 3
- Messages status doesn't work HOT 1
- Grok pattern POSTFIX_STATUS_CODE_ENHANCED can't parse "5.1.10" HOT 4
- New patterns HOT 5
- ECS compatibility HOT 1
- ECS authentication fields for SIEM HOT 1
- RCPT_TO / Return-Path HOT 6
- Deleting unnecessary messages HOT 4
- postfix_from and postfix_to address HOT 3
- filter postfix aggreate does not aggreate 100% log HOT 3
- Filebeat module HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postfix-grok-patterns.