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

HttpEventCollectorLoggingHandler ignores the formatter option #204

Closed
asmyers opened this issue Sep 30, 2021 · 1 comment
Closed

HttpEventCollectorLoggingHandler ignores the formatter option #204

asmyers opened this issue Sep 30, 2021 · 1 comment

Comments

@asmyers
Copy link

asmyers commented Sep 30, 2021

The Java logging.properties format specifies the ability to add a formatter to a logging handler. I would like to be able to use the Elastic Common Schema formatter with Splunk to capture information we gather on other systems.

com.splunk.logging.HttpEventCollectorLoggingHandler.formatter = co.elastic.logging.jul.EcsFormatter

However, the HttpEventCollectorLoggingHandler ignores the formatter directive. JDK implementations, such as StreamHandler use the formatter to format the message prior to writing it to the underlying writer.

@bparmar-splunk
Copy link
Contributor

Hi @asmyers,
Thanks for raising this up !

We have added a support for adding formatter for Java logging.
Please check this commit.

We are closing this issue for now.

Please verify with your example and let us know in case of further queries.
Thank you.

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