As for applying an IngestPipeline to an index by default, you can set the index.default_pipeline setting.
To apply a default setting to indices matching a pattern use indices-templates
I would look to makes sure that there are no existing templates or pipelines for those types of indices already. You may not want to remove good and existing behavior.
@Tim_Rice, I am unsure what you mean by "nothing worked".
Is the pipeline (the one you created mitresplit) associated with the index through the index.default_pipeline option? Also, this will only work on new documents being indexed.
I really don't know how to add the pipeline to the index.default_pipeline. I am still trying to research online to see if I can figure this out.
In respects to the "nothing worked", I should have been more descriptive there. Sorry about that.
It appears that if the "field" has a dot in it, I receive a java error. In this example, the field is event_data.RuleName
If I change this to event_dataRulename in your simulation, it works just fine.
The error:
"reason" : "java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: field [event_data] not present as part of path [event_data.RuleName]",
PUT winlogbeat-*/_settings/
{
"index.default_pipeline":"my-pipeline"
}
CAUTION: I am not sure that winlogbeat does not already have a default_pipeline defined, you should be able to see if there is just by looking at the settings.
To make sure that the pipeline is continually set on new winlogbeat-* indices, you can update the existing template (to see templates call GET _cat/templates).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.