DinoTools / dionaea

Home of the dionaea honeypot
https://dionaea.readthedocs.io/
GNU General Public License v2.0
700 stars 183 forks source link

Json logging in Docker #340

Open ARTER616 opened 1 year ago

ARTER616 commented 1 year ago

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:///@DIONAEASTATEDIR@/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[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the issue template!

GitHubUser557 commented 10 months ago

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: