Hi,
I know that using logstash conf files you can perform operations like "mutate" so you can add fields to the mapping and then you can apply transformations to these fields. Something like this:
mutate {
add_field => { "startDate" => "2017-04-01"}
}
date {
match => ["startDate", "yyyy-MM-dd"]
target => "startDate"
timezone => "UTC"
}
I have a file like this (it has thousands of documents):
start|end|max
1234|234|1234
3241|423|6564
And I want to add a date field. Is there a way to do the same thing using the Python API?