Skip to content

coxx/es-slowlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ElasticSearch slowlog parser

Coverage Status

This tool allows to read ElasticSearch slowlog records and produce output using text/template format.

It is mainly intended as helper tool for slowlog analysis and to produce input data for load testing tools.

There is predefined output formats for:

Install

go get github.com/coxx/es-slowlog/cmd/es-slowlog-parse

Examples

Write all queries to standard output

cat *_search_slowlog.log | es-slowlog-parse

Convert slowlog to tab-separated file

cat *_search_slowlog.log | es-slowlog-parse -f '{{.Index}}\t{{.Types}}\t{{.SearchType}}\t{{.Source}}'

Produce vegeta target file

cat *_search_slowlog.log | es-slowlog-parse -f vegeta -a localhost:9200

Notes

About

ElasticSearch slowlog parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages