Caddy - Access log not showing

Started by The_Istar, August 25, 2025, 02:42:43 PM

Previous topic - Next topic
August 25, 2025, 02:42:43 PM Last Edit: August 25, 2025, 05:20:13 PM by The_Istar
I just changed my Log HTTP Access in JSON Format setting from enabled to disabled as I wanted to access requests to show up in my normal logs in the Opnsense GUI as I do need the json logs anymore.

However, it seems none of my access requests show up in the Caddy logs.

Under log settings log level is set to: DEBUG and Log HTTP Access in JSON Format is deselected.
Under the Domain in question HTTP Access Log is enabled.
If it matters, this is a wildcard domain with DNS validation. Protocol is HTTPS.

The sites I reach work just fine. It is just that my access does not show in the logs at all.

I restarted the service already, disabled and enabled it and ever rebooted OPNSense totally. Yet no success.

Anybody any idea?


can you share your currently generated caddyfile?

Just omit all api keys, passwords, and use example.com as your base domain.
Hardware:
DEC740


It looks like there is something wrong with the log generation. I would expect more include lines, for each subdomain one.

include http.log.access.9f05cc56-1da2-4acd-91b3-09fd96d47fe3

Sounds like a bug in the log directive generation in the template.

Can you open a github ticket for me?

https://github.com/opnsense/plugins/issues
Hardware:
DEC740