-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additions #4
base: master
Are you sure you want to change the base?
Additions #4
Conversation
with timeout generating another message
Hi, Thanks for the contribution, I'll contact Bazsi to discuss it with him. Best regards, On Thu, Nov 6, 2014 at 1:23 PM, Fabien Wernli [email protected]
|
I consider myself pinged :)
There's a naming scheme I'm trying to keep when adding name-value pairs, which is described here: https://bazsi.blogs.balabit.com/2010/08/syslog-ng-name-value-pair-naming/ Other than the initial dot, the namespace is up to the user (or patterndb) to define. I saw most projects (e.g. Kibana) to gravitate to Common Information Model (a.k.a. cim), that has a dictionary to encapsulate information. CIM is defined by splunk, and a specification is available here: I wouldn't want to create a new dictionary, but rather reuse one that exists. This was my intent with the CEE project, but that didn't take off. CIM is seeing some more adoption, for example nflogd and suricata are two applications that can generate it, and Kibana has predefined reports to consume it. Let me know what you think about this. Thanks.
ok, got it. I don't yet know how to resolve this exactly for now. I first want to resolve bugzilla #294
Yep, I was trying to work on this today, but was distracted by other work.
We would probably need a system() source change that removes (extracts) this information and puts it in a name-value pair. Do you have a parser that would extract this information on a Solaris system? I might give a stab at integrating it into system() and perhaps also publish it as an SCL snippet that can be reused even for those cases who don't use system(). Thanks for the PR. |
I just had a quick look on the CIM spec. Is the splunk CIM related / identical to the CIM of DMTF ? |
I never heard of DMTF, and quickly browsing through the specs, it seems CIM here stands for common information model, and seems to originate from Ah, I've found a definite answer on that: The csv-parser to extract msgid from Solaris messages would be nice, I'd Bazsi On Wed, Nov 12, 2014 at 3:15 PM, Fabien Wernli [email protected]
|
I couldn't find your reference about kibana's implementation of cim.
Other question: they seem to have an alias concept. Any idea on how this could be implemented in syslog-ng? |
found it on the ML, haven't tested though. I'll do ASAP |
Hi, how about this integration in syslog-ng: https://github.com/balabit/syslog-ng/compare/f/solaris-msg-id-parsing?expand=1 Bazsi On Wed, Nov 12, 2014 at 3:40 PM, Fabien Wernli [email protected]
|
Hi, I think field aliasing should be implemented in the "search" layer. In many You'd not reindex/reparse your logs once you realize you made a mistake Where do you store your logs. Is it feasible to do field aliasing there? Bazsi Bazsi On Wed, Nov 12, 2014 at 3:35 PM, Fabien Wernli [email protected]
|
I store the logs in Elasticsearch. It is absolutely possible to do so there, and I agree it is the right place to do it. |
about the msgid thing, LGTM but I'll have to test it. That being said, I'm not sure it's relevant to keep |
@bazsi could you please comment on #4 (comment) so I can start migrating to the new naming scheme |
|
Not really, but it's very interesting :-) Example:
Is that clearer? |
I thought I've answered your question too, as the question I saw was what Within syslog-ng we should use the .cim prefix. Your sample doesn't do that. I would always try to populate certain values much earlier than in a Things like os should probably be filled by the system source, right at the The device Ata1 is specified by the kmsg driver. My point is that structured information should be collected as soon as it's Hth,Bazsi Not really, but it's very interesting :-) Example: ata@ESTRING:krnacct.rsid::@ limiting SATA link speed to Is that clearer? — |
I totally agree with "the closer to the source the better". However, what's the state of the art of that? Which distributions already actually populate the keys you're mentioning like os and device? I am pretty confident that with what I'm using in production (mainly EL6, some EL5 and EL7) this would not be the case so I would need to do some patterndb. |
You are right. But we could add these to the system source. Then deploy
|
true for 'os', and other things too like You were mentioning |
This PR isn't intended to be merged entirely, more to ping @bazsi ;o)
Here are some of the open issues:
pam_unix
ruleset obviously conflicts with various pdb files inaccess/*
due to add filename based sorting to pdbtool merge in a similar vein to what run-parts does syslog-ng/syslog-ng#294msgid
which is on by default on Solaris, and it should be disabled or preparsed (dropped)