Short setup for a demo visualization of apache-logs using logstash, kibana and elastic search
Elastic search is a indexing and querying based over apache’s lucene engine.
It helps download link: elastic search
cd elasticsearch
bin/elasticsearch
You can check if elasticsearch is up and running at localhost:9200
Open another terminal and proceed for kibana.
Kibana helps visualizing data using after querying using elastic search.
download link: kibana
cd kibana
bin/kibana
You can access kibana GUI at localhost:5601
Logstash helps normazling data from various data soruces such as apache, log events, sql and other data sources.
Also, logstash enhances data us varius filters such as geoip, grok, matcher and many more.
Open another terminal and proceed for logstash
download link: logstash
download sample-data from logs
unzip the logs into a folder
download apache.conf file from github repo apache.conf
Now open apache.conf in text editor and change the path field to location of log we downloaded above.
In apache.conf, change
file{
path => path_of_logs_downloaded/logs_file
.
.
}
cd logstash
bin/logstash -f "file_path"/apache.conf
Change file_path to path of file where you have stored apache.conf
Select @timestamp
You can see your data
Add 2-3 other visualizations and save them
Select from them and create a dashboard