Created
June 24, 2018 00:53
-
-
Save matutter/4d2bc74feaf35dc76e2f4a6db4efd7cb to your computer and use it in GitHub Desktop.
ELK configs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /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; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /etc/elasticsearch/elasticsearch.yml | |
| xpack.security.enabled: false | |
| path.data: /var/lib/elasticsearch | |
| path.logs: /var/log/elasticsearch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /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"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /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