Newbie here; I am trying to get a CSV file from a windows server and send it to ES through logstash; I am hoping to get the columns in ES so we can do proper searches; but it seems all the CSV output goes into message field.
I have installed file beats with follwing config:
filebeat.inputs:
- type: log
- C:\Scripts\Daily*.csv
output.logstash:
hosts: ["192.168.1.101:5044"]
===================
- C:\Scripts\Daily*.csv
LogStash has following config:
cat /etc/logstash/conf.d/02-beats-input.conf
input {
beats {
port => 5044
}
}
filter {
if [beat.name] == "server15" and [prospector.type] == "log" {
csv {
separator => ","
columns => [ "Received","SenderAddress","RecipientAddress","Subject","Status","ToIP","FromIP","Size","MessageId","MessageTraceId" ]
}
}
}
output {
elasticsearch {
hosts => ["http://192.168.1.102:9200"]
}
}
Can someone please give me some tips how to get the CSV data into separate fields in ES.