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

Add an option to set the op_type for the ElasticsearchHandler #1766

Merged
merged 1 commit into from
Feb 4, 2023

Conversation

identei
Copy link
Contributor

@identei identei commented Oct 7, 2022

When pushing logs to a data stream in Elasticsearch, the op_type must be set to "create". By default, the ElasticsearchHandler uses the "index" op_type. I have added an option to the ElasticsearchHandler so that you can specify the op_type to use and therefore enable the ability to push logs into an Elasticsearch data stream.

The default selection still is set to "index" so no behavior will change unless you specifically include the "op_type" option when creating the client.

@Seldaek Seldaek added this to the 3.x milestone Feb 4, 2023
@Seldaek Seldaek added the Feature label Feb 4, 2023
@Seldaek Seldaek merged commit f58e4f4 into Seldaek:main Feb 4, 2023
@Seldaek
Copy link
Owner

Seldaek commented Feb 4, 2023

Thanks

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

Successfully merging this pull request may close these issues.

None yet

2 participants