Loki tools#
Read the contents of a chunk from S3#
Prerequisites#
- s3cmd : see install s3cmd
- chunks-inspect
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