Skip to content

Instantly share code, notes, and snippets.

@matutter
Created June 24, 2018 00:53
Show Gist options
  • Select an option

  • Save matutter/4d2bc74feaf35dc76e2f4a6db4efd7cb to your computer and use it in GitHub Desktop.

Select an option

Save matutter/4d2bc74feaf35dc76e2f4a6db4efd7cb to your computer and use it in GitHub Desktop.
ELK configs
# /etc/nginx/sites-available/default
server {
listen 80 default_server;
listen [::]:80 default_server;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
location /kibana {
proxy_pass http://localhost:5601;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
# /etc/elasticsearch/elasticsearch.yml
xpack.security.enabled: false
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
# /etc/filebeat/filebeat.yml
filebeat.inputs:
- type: log
enabled: true
paths:
- /home/mcutter/git/py-lock/events.log
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
setup.template.settings:
index.number_of_shards: 3
setup.kibana:
output.elasticsearch:
hosts: ["localhost:9200"]
# /etc/kibana/kibana.yml
server.port: 5601
xpack.security.enabled: false
server.host: "localhost"
server.basePath: "/kibana"
server.rewriteBasePath: true
elasticsearch.username: "kibanaadmin"
elasticsearch.password: "password"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment