How would I be able to combine multiple config files to push data to elasticsearch.
I currently have 2 csv files that have different column names and data results. I want to be able to run multiple config files and display results on Kibana.
One approach is to put all the config files in a single directory and then you call logstash like this:
logstash -f path_to_directory
BUT, in order for this to work, in each config file you need to use types as shown below. Each config file must have a different type or else the config files will step on each other.
input {
-your normal input settings-
type => "my_type_1"
}
filter {
if [type] == "my_type_1"{
-your normal filter settings-
}
}
output {
if [type] == "my_type_1" {
-your normal output settings-
}
}
Once that is set how do I run multiple config files on the same directory. They are all in the conf folder. When I run logstash -f "path to conf file" I get configuration file not found error.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.