I know the add field => doesnt work..
What i want to do is the input into elasticsearch will have the following fields
Date|ID|Recipient|Subject|Internal Count|Home Use Count|Buisness Partners Count|Managed Suppliers| All|Unknown
The last 6 getting there counts from the ruby variables.
Sorry orginally this was being inputted with the csv filter so using ruby is really new to me
{
'path' => "/home/callum/test/raw.csv",
@timestamp = > 2017-01-24T10:34:31,
@version => "1",
"host" => "ubuntu"
"message" => "ZIP,2017-01-10 08:53 GMT,48784048,myhost (10.15.193.196),This-is-the-sender@gmail.com,reciver@gmail.com,anotherreciver@yahoo.com,andanother@gamail.com,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Email Subject\r",
"tags" => {
[0] "_rubyexception"
]
}