Hi,
we want to distribute / split out data to different indexes, because based on the type of the data we will have different retention times.
In my last project I used logstash to parse and enrich log events and calculated in logstash in which index the documents are stored:
output
{
elasticsearch
{
...
index => "%{[@metadata][indexName]}"
}
}
I am not familar with the ingest pipelines which are offered by elasticsearch.
Is it possible to implement some logic like this in the ingress pipeline?
Assume logName is a field which is already present in the input documents.
if (logName in (httpd, session, xyz))
{
store in index_a
}
else if (logName in (abc, efg)
{
store in index b
}
else
{
store in index c
}
Index a, b, c will have different ILM rules.
Is it possible to do this in elasticsearch? How?
I'd like the centralized way to have the config in one central point. But beside my liking, what is best practice if you have multiple logstash instances?
PS: We are only using the free version. No payed subscription yet.
Thanks, Andreas