This repository has been archived by the owner. It is now read-only.
Strace container output to a file, then shove the syscalls into elastic search.
Switch branches/tags
Nothing to show
Clone or download
jessfraz jfrazelle -> jessfraz
Signed-off-by: Jess Frazelle <acidburn@google.com>
Latest commit 02e92c1 Sep 30, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dockerignore initial commit Jan 22, 2016
.gitignore initial commit Jan 22, 2016
Dockerfile update dockerfile Sep 21, 2016
LICENSE add readme Jan 22, 2016
Makefile initial commit Jan 22, 2016
README.md jfrazelle -> jessfraz Sep 30, 2016
strace-process.sh instructions Jan 22, 2016
strace.py log on error Jan 22, 2016
strace2elastic.py skip and log offending lines, dont throw exception Jan 22, 2016
strace_utils.py initial commit Jan 22, 2016

README.md

strace2elastic

Strace container output to a file, then shove the syscalls into elastic search.

$ strace2elastic.py
Usage: strace2elastic.py [OPTIONS] [FILE]

Options:
  -h, --help                        Print this help message and exit
  -e, --elastichost HOST:PORT       Elastic search instance
  -c, --container   CONTAINER_NAME  Container name

Just add strace-process.sh as a PostStart hook in your runc runtime config. See jessfraz/containers/notify-osd/runtime.json as an example.

Huge thanks to dirtyharrycallahan/pystrace