I am running logstash 2.2.2 and I am trying to rename these 2 fields from my data and it does not take effect on the index. Please help
Rename "Fashion&Beauty" to Fashion_and_Beauty
"Business/Finance" to Business_and_Finance
input {
file {
path => "/var/data/logstash/myfile.log"
start_position => beginning
#sincedb_path => "/var/data/logstash"
}
}
filter {
mutate {
remove_field => [ "@version" ]
rename => [ "Fashion&Beauty", "Fashion_and_Beauty" ]
rename => [ "Business/Finance", "Business_and_Finance" ]
}
}
output {
elasticsearch {
hosts => "http://localhost:9200"
manage_template => false
index => "myindex"
}
}