Hi,
3 days on elk stack and i'm kinda stuck.
What i want to do ?
I got an apache server with classic access.log and errors.log and i would like to pull thoses logs with some parsing.
What i've understood so far ?
I must be wrong but here is what i understood :
- Filebeat recovers log through tcp to my logstash server (i got it working with kibana log procedure)
- Logstash process thoses logs with pipelines and store them inside elasticsearch
- Kibana allow me to display logs from elasticsearch
What is my issue ?
Spoiler alert
(Myself)
The default kibana/filebeat apache2 log is not parsing like i would, i want to customise it.
What i've done ?
I can't find this default pipeline created through kibana? filebeat? to modify it, so i decided to create my own i have modified pipeline.yml removed everything and added my pipeline :
- pipeline.id: apache
path.config: "/usr/share/logstash/pipeline/apache.conf"
and created a basic pipeline apache.conf inside my pipeline folder :
input {
beats {
port => 5000
host => "my logstash server ip"
}
}
output {
elasticsearch {
hosts => localhost
manage_template => false
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
}
}
And tried to run this command (without really understanding it) :
bin/logstash -f apache.conf
well unfortunately it does not work as expected, i'm a bit frustated cause i can't find a proper clear explanation/procedure in logstash documentation i feel like this doc is not designed for newbies like me.
If you could help me a bit, would appreciate.
Thanks,
Nihi