Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pablosilvab/elastic
This lib allow write logs in ElasticSearch.
https://github.com/pablosilvab/elastic
elasticsearch golang
Last synced: 3 days ago
JSON representation
This lib allow write logs in ElasticSearch.
- Host: GitHub
- URL: https://github.com/pablosilvab/elastic
- Owner: pablosilvab
- License: mit
- Created: 2020-04-26T23:41:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T19:49:31.000Z (over 1 year ago)
- Last Synced: 2023-07-27T22:27:21.546Z (over 1 year ago)
- Topics: elasticsearch, golang
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Elastic-Lib
[![Go Reference](https://pkg.go.dev/badge/golang.org/x/example.svg)](https://pkg.go.dev/github.com/pablosilvab/elastic)
This project allows writing logs to Elasticsearch.
## Requirements
* Go
* Run ElasticsearchFor 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
```## Installation
Run
```
go get github.com/pablosilvab/elastic
```## Example 🚀
The example create an index and write a record in Elasticsearch.
```
make example
```