https://github.com/sohelamin/efk-stack
EFK Stack (Elasticsearch, Fluentd & Kibana)
https://github.com/sohelamin/efk-stack
Last synced: 8 months ago
JSON representation
EFK Stack (Elasticsearch, Fluentd & Kibana)
- Host: GitHub
- URL: https://github.com/sohelamin/efk-stack
- Owner: sohelamin
- Created: 2020-07-29T18:19:57.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-26T17:32:59.000Z (over 2 years ago)
- Last Synced: 2025-01-06T19:40:08.568Z (9 months ago)
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EFK Stack
> Getting ready with EFK stack## Setup
1. Setup the main EFK Stack on a linux server using the shell script.
```
sudo chmod +x EFK.sh
./EFK.sh
```2. Visit your kibana dashboard and create `api.log-*` index pattern in Management->Stack Management->Index Patterns.
3. Collect your log from your applicatiion. eg. for Node.js app you can use this [package](https://github.com/fluent/fluent-logger-node).
4. You can see the logs on kibana dashboard now.
### Security
To protect the kibana dashboard you can use the `htpasswd` in nginx.
Use authentication while communicating through fluentd.### Extra commands
Reset elasticsearch user's password
```
bin/elasticsearch-reset-password -u elastic -i
```Delete indices from Elasticsearch
```
curl -XDELETE 'http://localhost:9200/logstash-*'
```
Check the space usage in Elasticsearch
```
curl -XGET 'http://localhost:9200/_cat/indices?v'
curl -XGET 'http://localhost:9200/_cat/allocation?v'
```## Author
[Sohel Amin](http://sohelamin.com)