OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: krmcntr on January 10, 2023, 02:33:59 PM

Title: Syslog JSON doesn't log destination IP and Timestamp in milliseconds
Post by: krmcntr on January 10, 2023, 02:33:59 PM
I have the below configuration for Syslog(JSON). In access.log, I don't see the destination ip. Also the timestamp is not in milliseconds. Is it possible to fix it?


logformat opnsense  {"@timestamp":"%{%Y-%m-%dT%H:%M:%S%z}tg","ecs":{"version":"1.0.0"},"event":{"id":"%{X-Request-Event-Id}>ha","dataset":"squid.access","duration":"%tr"},"http":{"version":"%rv","request":{"method":"%rm","referrer":"%{Referer}>h"},"response":{"bytes": %<st, "body":{"status_code": %>Hs}}},"host":{"hostname":"%>A"},"service":{"name":"proxy","type":"squid"},"source":{"ip":"%>a"},"url":{"original":"%ru"},"user":{"name":"%un"},"user_agent":{"original":"%{User-Agent}>h"},"labels":{"request_status":"%Ss","hierarchy_status":"%Sh"},"message":"%rm %ru HTTP/%rv"}