Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 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
```

## Installation

Run
```
go get github.com/pablosilvab/elastic
```

## Example 🚀

The example create an index and write a record in Elasticsearch.
```
make example
```