Quantcast
Channel: Admins Goodies » syslog-ng
Viewing all articles
Browse latest Browse all 10

syslog-ng mongodb plugin configuration

$
0
0

Question

I am using syslog-ng‘s mongodb plugin and it works great, but I can’t find a way to customize the format of the saved log entries (“DATE”, “FACILITY”,…). Does anyone know how to do this?

All information I could find is here (useful, but outdated) and here (missing this bit).

Asked by johndodo

Answer

If you mean that you would like to rename the fields (which I think is what you are asking), then you can try something like this:

value-pairs(
  pair("My_Date_Field" "${DATE}") 
  exclude("DATE")
)

You are going to have to do it for each one though, I can’t think of any way to do it auto-magically.

Answered by Adam C

Viewing all articles
Browse latest Browse all 10

Trending Articles