I have an input into elasticsearch from a large amount of json formatted data. The input looks like this
file{
codec => json
path => "/opt/apps/logs/health/*.log"
type => "health"
}
}
Very simple.
The data in each event looks like this (paraphrased)
First event
Item.1234.pineapple.red
Item.1234.pegasus.purple.dogsled```
Second Event
```Item.5555.description
Item.5555.pineapple.red
Item.5555.pegasus.purple.dogsled```
I would like to get rid of this randomly generate number in the 2nd array slot.
In other words I want the results of each event to look like this
```Item.description
Item.pineapple.red
Item.pegasus.purple.dogsled```
I'm trying to use the ruby filter to do this, however it's not even close to working. Can anyone help me accomplish this task?