I have several different mapping types in a particular mapping (H, D, D1, D2, D3....D8). I am trying to write a logstash configuration to push data to these mappings based on a particular check.
- I extract the first field of each line of my file (tab delimited text file) and rename it to "Heading"
- Check if the "Heading" is H, D, D1...D8
- Based on that, I perform certain filters on the data
- Depending on the what the "Heading" is, I send the output to the different mapping types in elasticsearch
Can someone guide me through this?
Also, all the mapping types have different "properties".