Logstash coverting field names to all lowercase

I'm using Logstash to keep my MySql database and ES in sync. I want to keep field names in both databases to be same. But logstash is converting some uppercase field names to lowercase. How to config logstash, so that those uppercase field names remain same?

Thanks in Advance!

It should pass through what it gets, can you show us your config?

input {
jdbc {
jdbc_validate_connection => true
jdbc_driver_library => "/usr/share/java/mysql-connector-java-5.1.28.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://127.0.0.1:3306/testDB"
jdbc_user => "root"
jdbc_password => "***"
schedule => "
* * * *"
statement => "SELECT * FROM **** LEFT OUTER JOIN ***** USING(*****)"
}
}

output {
elasticsearch {
# protocol => "http"
index => "******"
document_type => "*"
document_id => "%{
}"
hosts => ["localhost:9200"]
}
stdout { codec => rubydebug }
}
This is my config.
Those **** are used to hide real names.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.