Hello,
I have ElasticSearch and Logstash installed on same machine(Ubuntu).
I have the below apache_logs.conf file contents:
input {
file {
path => "/var/log/apache_logs"
type => "apache_log" # a type to identify those logs (will need this later)
start_position => "beginning"
}
}
filter {
grok {
match=> { message => "%{COMBINEDAPACHELOG}" }
}
date {
locale => "en"
match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss Z" ]
}
}
output {
stdout { }
elasticsearch {
hosts => ["localhost:9200"]
sniffing => true
manage_template => false
index => "myLogs"
}
}
The command --> sudo service logstash configtest returns "Configuration OK"
The log file is placed in "/var/log/apache_logs"
However, indices are not getting created in elasticsearch and hence not reflected in kibana.
Could you please point out if I have missed out on any settings.