Skip to content

jo-makar/fake-elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fake-elasticsearch

Simulate an Elasticsearch node

Primarily interested in providing behavior that mimics the Bulk API to support ingesting data from Beat agents.

Beat agent Elasticsearch endpoint Notes
filebeat 7.3.1 GET / TODO Where is this documented?
filebeat 7.3.1 GET /_xpack (?human=false) Info API
filebeat 7.3.1 GET,PUT /_ingest/pipeline/<id> Ingest APIs
filebeat 7.3.1 GET,HEAD,PUT /_template/<id> Index APIs (Index templates)
filebeat 7.3.1 POST /_bulk (/<index>/_bulk) Bulk API

TLS support

Generate a private key and self-signed certificate with:

openssl req -x509 -nodes -newkey rsa:4096 -keyout server.key -out server.crt -subj '/O=Acme'

Then replace http.ListenAndServe with http.ListenAndServeTLS in main.go

About

Simulate an Elasticsearch node

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages