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

Provide an option to cut out parts of a log message #412

Closed
huntc opened this issue Feb 14, 2017 · 3 comments
Closed

Provide an option to cut out parts of a log message #412

huntc opened this issue Feb 14, 2017 · 3 comments

Comments

@huntc
Copy link

huntc commented Feb 14, 2017

My log lines are very long, necessitated by the capturing of structured data in relation to the log message. Example:

2017-02-14T16:01:37Z node2 DEBUG ElasticsearchCollector [sourceThread=conductr-agent-akka.actor.default-dispatcher-2, akkaTimestamp=16:01:37.506UTC, akkaSource=akka.tcp://conductr-agent@192.168.77.22:2552/user/ElasticsearchCollector, sourceActorSystem=conductr-agent] - Posted to Elasticsearch and receive a response│

It'd be great to hide the contents between the square brackets as it is generally not required. For example:

2017-02-14T16:01:37Z node2 DEBUG ElasticsearchCollector [...] - Posted to Elasticsearch and receive a response│

...would be great.

@tstack tstack closed this as completed in 1a87184 Feb 23, 2017
@tstack
Copy link
Owner

tstack commented Feb 23, 2017

If you have a format for these log files, you can either mark the field as 'hidden' in the 'value' definition or use the ':hide-fields' command to hide the field while you have the file open.

@huntc
Copy link
Author

huntc commented Feb 23, 2017

Sounds great! I'll try this out today. Thanks!

@huntc
Copy link
Author

huntc commented Feb 23, 2017

Hey @tstack - when do you think this'll be part of a release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants