I am trying to use 2 folders with .csv logs in as the input to my .conf file, yet it doesn't seem to work:
here is my code
input{
file {
type => "file1"
path => "/place/holder/place/holder/*.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
file{
type => "file2"
path => "/place/holder/place/holder/*.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
if [type] == "file1"{
csv {
separator => ","
columns => ["column1","column1","column3"]
}
}
if [type] == "file2"{
csv {
separator => ","
columns => ["column4","column5","column6"]
}
}
}
output{
if [type] == "file1"{
elasticsearch{
hosts => "http://localhost:9200"
index => "data-index"
}
}
if [type] == "file2"{
elasticsearch{
hosts => "http://localhost:9200"
index => "data-index"
}
}
stdout {}
}