Getting Data In

How to modify syslog source type to handle rfc3339 timestamp?

chutz
Engager

We pass messages with rsyslog using the rfc3339 time format. It has microseconds, and it has a timestamp. But noticed a few issues:

  • The time zone is not parsed out of the message. If I remove the microseconds from the timestamp, it would work fine.
  • The host does not get parsed out. Seems to be a problem with the syslog-host transform which does not like the timezone. Dropping the timezone fixes this problem but I would rather keep it.

What would be the best way to proceed?

  • Modify the syslog source type?
  • Create a new source type?
  • Report the issue and hope for a fix?
1 Solution

richgalloway
SplunkTrust
SplunkTrust

The best approach (IMO) is to create a new sourcetype that parses the data.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

The best approach (IMO) is to create a new sourcetype that parses the data.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Stay Connected: Your Guide to April Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars in April. This post ...

Want to Reduce Costs, Mitigate Risk, Improve Performance, or Increase Efficiencies? ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...