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

IndexOperationParams from example is not working #92

Open
dariusdev opened this issue Mar 21, 2022 · 1 comment
Open

IndexOperationParams from example is not working #92

dariusdev opened this issue Mar 21, 2022 · 1 comment

Comments

@dariusdev
Copy link

When i try to use this in my configuration:

<IndexOperationParams>
  <Parameter>
	  <Key>_id</Key>
	  <Value>%{IdSource}</Value>
  </Parameter>
  <Parameter>
	  <Key>key</Key>
	  <Value>value</Value>
  </Parameter>
</IndexOperationParams>

I am receiving error:
log4net:ERROR XmlHierarchyConfigurator: Cannot find Property [Parameter]

Should i use? :

<IndexOperationParams>
  <OrSetParameter>
	  <Key>_id</Key>
	  <Value>%{IdSource}</Value>
  </OrSetParameter>
  <OrSetParameter>
	  <Key>key</Key>
	  <Value>value</Value>
  </OrSetParameter>
</IndexOperationParams>

For me it is not clear what IndexOperationParams is doing at all. Can someone help with better explanation or examples what this property is doing and how it could be used?

@urielha
Copy link
Owner

urielha commented Apr 10, 2022

Weird that it is not working, I will have to check.

In the meantime - IndexOperationParams is there for adding custom properties to your log message.
Similar to mutate-add_field in logstash - https://www.elastic.co/guide/en/logstash/current/plugins-filters-mutate.html#plugins-filters-mutate-add_field

Have you tried with OrSetParameter and it worked? or is it just a guess? I don't see a reason why it should work instead of Parameter

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