Aller au contenu

Loki tools#

Read the contents of a chunk from S3#

Prerequisites#

Build chunks-inspect#

git clone https://github.com/grafana/loki.git
cd loki/cmd/chunks-inspect

go get ./... # you may get an error, but go on : it may work even with that error
go build
ls # you should find your newly compiled chunks-inspect binary

Read the chunk#

s3cmd get s3://<bucket name>/<object> - > /tmp/some_file_name
chunks-inspect /tmp/some_file_name