Hello All,
I might miss some information on the documentation...
I saved two different configuration files at /etc/logstash/conf.d which may run under 'main' pipeline
first.conf
input
{
file
{
path => "/data/first/*.csv"
start_position => "beginning"
sincedb_path => "/var/opt/sincedb/first.log"
}
}
filter {
csv
{
separator => ";"
columns => ["one","two","three"]
mutate
{
remove_field => [ "message" ]
}
}
output {
elasticsearch
{
hosts => "http://localhost:9200"
index => "first"
}
}
second.conf
input
{
file
{
path => "/data/second/*.csv"
start_position => "beginning"
sincedb_path => "/var/opt/sincedb/second.log"
}
}
filter {
csv
{
separator => ";"
columns => ["one","three"]
mutate
{
remove_field => [ "message" ]
}
}
output {
elasticsearch
{
hosts => "http://localhost:9200"
index => "second"
}
}
The issue is that when the first file is saved in /data/first, both indices (first and second) receive the data.
Are the file being combined in some way?
Thanks in advance,
Paulo