This repository was archived by the owner on Jul 12, 2021. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork7
sloniki/logiq
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
LogIQ is a simple monitoring front end for Elastic Logstash. It uses MonitoringAPI.
Tested on Logstash versions 6.x-7.x
Open the html page and add your Logstash hosts with port number. You need internet connection as the page uses external libraries like bootstrap, jquery and echarts.
You need to enable remote connections on Logstash, just add the line in Logstash config file (default /path/to/logstash/config/logstash.yml):
http.host: "0.0.0.0"
Logstash may not allow CORS calls, you can use proxy tofix this.Install Nginx and add this section in /etc/nginx/nginx.conf:
server { listen 9601; location / { if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET'; add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range'; add_header 'Access-Control-Expose-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range'; } proxy_pass http://logstash:9600; } }
Don't forget to set your logstash hostname and exposed port.After Nginx restart it will proxy requests from port 9601 to 9600 with right headeres.
- Add Logstash disconnections handling
- Add charts
- Make as a browser plugin