Skip to content
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

Allow for setting user fields to enrich the JSON documents #13

Open
rtoma opened this issue Oct 20, 2015 · 0 comments
Open

Allow for setting user fields to enrich the JSON documents #13

rtoma opened this issue Oct 20, 2015 · 0 comments
Milestone

Comments

@rtoma
Copy link

rtoma commented Oct 20, 2015

Imagine adding config like:

redislog.userFields = "field1:value1[,field2:value2]"

Which will result in these fields being added to each JSON document, like:

{
  "@timestamp": "2015-10-20T15:13:58.042+0200",
  "process_id": 7240,
  "session_id": "56263e15.1c48",
  "session_line_num": 1,
  "session_start_time": "2015-10-20T15:13:57+0200",
  "error_severity": "LOG",
  "hint": "Future log output will appear in directory \"pg_log\".",
  "message": "redirecting log output to logging collector process"
  "field1": "value1", <---
  "field2": "value2", <---
}

This enhancement makes it possible to enrich the JSON docs with properties like: environment, database name, instance name et cetera...

Have fun in Vienna next week!

@mnencia mnencia added this to the Backlog milestone Nov 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants