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

Implement index conditional match in output elasticsearch #96

Closed
cristianocasella opened this issue Mar 24, 2017 · 1 comment
Closed

Comments

@cristianocasella
Copy link
Contributor

Like described here:

https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#_indices

Filebeat support the ability to split in different index depending, as a sample, to a field match (field 'message' in the example).

In your module this condition is not supported.

From templates/filebeat5.yml.erb (@100-102):

  <%- if @filebeat_config['output']['elasticsearch']['index'] != nil -%>
  index: "<%= @filebeat_config['output']['elasticsearch']['index'] %>"
  <%- end -%>

the support for an array 'indices' containing for each index a condition could be implemented.

@pcfens
Copy link
Owner

pcfens commented Mar 28, 2017

Fixed in #97

Thanks again @cristianocasella

@pcfens pcfens closed this as completed Mar 28, 2017
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