Hi Folks ,
I'm new in ELK , i'm trying read and parse a file with logstash. But I get some errors during the parsing process
Here is an example of logs
// date="Nov 21 2020 14:36:00" AED="1.1.1.1" type=group_location pg_id="3000" pg_name="TEST on ASP-LAB1" country="US" bpsPassed="18" bpsDropped="0" ppsPassed="0" ppsDropped="0"
date="Nov 21 2020 14:37:00" AED="1.1.1.1" type=group_location pg_id="3000" pg_name="TEST on ASP-LAB1" country="US" bpsPassed="36" bpsDropped="0" ppsPassed="0" ppsDropped="0"
//
input {
file{
path => "/home/data/aed_ts-*"
start_position => "beginning"
sincedb_path => "NUL"
codec => json }
}
filter {
json {
source => "message"
}
}
output {
elasticsearch {
index => "ed-test-1%{+YYYY.MM.dd}"
hosts => ["https://es01:9200"]
ssl => true
ssl_certificate_verification => false
cacert => "/usr/share/logstash/certs/ca/ca.crt"
manage_template => false
user => "elastic"
password => "${ELASTIC_PASSWORD}"
}
}
//