Centralized Log of Application With ELK Stack ( Structured Logging )
- Elasticsearch -
7.7.0 version - already installed
- Kibana -
7.7.0 version - already installed
- Logstash -
7.7.0 version - already installed
- Filebeat -
7.7.0 version - already installed
- Application with log files , for example :
app.log
-
./filebeat -e -c filebeat/filebeat.yml -d "publish"
-
./logstash -f logstash/logstash.conf --config.reload.automatic
-
go run main.go
run this command :
curl --location --request POST 'http://localhost:3000/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "1",
"name": "ical",
"data": {
"enabled": false
}
}'