-
Notifications
You must be signed in to change notification settings - Fork 418
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
Clarify mapping related to logging #153
Comments
Hey @bmagistro thanks for opening this issue. Your mapping so far makes sense. Here's suggestions on the fields you were wondering about:
* ECS is not like most other schemas. When a field is missing from ECS, you're welcome to add it in your events anyway. We're working on documentation that will explain this better (e.g. how to do so safely vs future versions of ECS), but that documentation isn't ready yet. Still being worked on here #130. |
Thanks for the suggestions. Will see where things go, the bigger concern I had with adding/changing the template for our use was compatibility with future changes. Ideally we can map the items we want into existing/planned fields to minimize those impacts. I did mean severity and not facility...too many things going on. For these messages, they may not be errors (entries in application log file as opposed to stack trace/thrown exceptions). If this was just a log file coming up from beats, I'm assuming the "message" component would map to "message"? |
Yes, the work on #130 is about documenting how to avoid these clashes as best as possible. It's a tricky nut to crack, without getting very deep into details :-) Note that if you map your event information to fields that end up not being the official field in ECS, you should be able to gradually move to ECS by using Elasticsearch' Typically most messages go to |
Thanks for the input. I think I have gotten our common logs (auditd, secure, messages, nginx, apache, and some of our apps) mapped in at a very basic level. |
Hey @bmagistro, I'll close this for the time being, as it looks like everything has been answered. Please open other issues if you have further questions, or if you've faced problems and would like to contribute ideas to ECS. Thanks for getting in touch! |
Hello,
For logging from some of our applications we produce a log line that is
ISO8601 Date (microsecond + tz), log level, thread id/name, file, function, line number, message
. This provides information about where in our code the log message originated, any thoughts on where/how to map these items into ecs?From this line it seems like the mapping would be as follows optionally logging the original to log.original.
date/time to @timstamp
log level (think syslog facility) to log.level
thread id/name to ??
file to ??
function to ??
line number to ??
message to message
If
process.tid
andprocess.thread
(or equivalent) are added, I can see those being used for thread id/name.Thanks!
The text was updated successfully, but these errors were encountered: