Thanks for the tip. I tried using a cat command on the file, the problem now is that it loads the content of the whole file as a single block. Here is an example of the file content :
myFirstColumn;mySecondColumn;mythirdColumn
valueA;ValueB;ValueC
Value1;Value2;Value3
ValueX;ValueY;ValueZ
And here is my config :
input {
exec {
command => "cat myfile.csv"
interval => 2
add_field => {
"tag" => "mytag"
}
}
}
filter {
if [tag] == "mytag" {
csv {
columns => ["myFirstColumn", "mySecondColumn", "mythirdColumn"]
separator => ";"
}
}
It sends the whole content of the file without splitting it content. Is something missing ?