This project allows writing logs to Elasticsearch.
- Go
- Run Elasticsearch
For Elastic I use Docker
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.6.2
Run
go get github.com/pablosilvab/elastic
The example create an index and write a record in Elasticsearch.
make example