coxx / es-slowlog

ElasticSearch slowlog parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Go 100.0%