OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • Syslog JSON doesn't log destination IP and Timestamp in milliseconds
« previous next »
  • Print
Pages: [1]

Author Topic: Syslog JSON doesn't log destination IP and Timestamp in milliseconds  (Read 1236 times)

krmcntr

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
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"}
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • Syslog JSON doesn't log destination IP and Timestamp in milliseconds
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2