1
Web Proxy Filtering and Caching / Syslog JSON doesn't log destination IP and Timestamp in milliseconds
« 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?
Code: [Select]
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"}