Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json logging in Docker #340

Open
ARTER616 opened this issue Jul 10, 2023 · 2 comments
Open

Json logging in Docker #340

ARTER616 opened this issue Jul 10, 2023 · 2 comments

Comments

@ARTER616
Copy link

ARTER616 commented Jul 10, 2023

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
Copy link

welcome bot commented Jul 10, 2023

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

@GitHubUser557
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants