Json logging in Docker
ARTER616 opened this issue · 2 comments
ARTER616 commented
How can I enable log_json ihandler? I did not found explanation in the docs, so tried myself. I changed the path in conf/log_json.yaml.in to file:///@DIONAEA_STATEDIR@/dionaea.json
(I tried file://@...)
Also I added log_json to modules/python/CMakeLists.txt. Now I get error "unable to open file /var/lib/dionaea/dionaea.json"
welcome commented
Thanks for opening your first issue here! Be sure to follow the issue template!
GitHubUser557 commented
I copied log_json.yaml from ihandlers-available folder to ihandlers-enabled
then i got error: "unable to open file /lib/dionaea/dionaea.json no such file or directory
so i created a directory where i created this file and used that directory as a volume in my docker compose file
volumes:
- ./temp:/lib/dionaea/
after these steps, json logging started to work.