skip and log offending lines, dont throw exception

Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2 files changed
tree: 2a7ad9e813d89d872028e497d2264e7e8bccdbce
  1. .dockerignore
  2. .gitignore
  3. Dockerfile
  4. LICENSE
  5. Makefile
  6. README.md
  7. strace-process.sh
  8. strace.py
  9. strace2elastic.py
  10. strace_utils.py
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 jfrazelle/containers/notify-osd/runtime.json as an example.

Huge thanks to dirtyharrycallahan/pystrace