Getting Data In

How to reformat timestamp in SYSLOG _raw

dokaas_2
Path Finder

SYSLOG often sends the timestamp in the older format (e.g. Jul 11 14:23:32).  Unfortunately, that format does not have a year or timezone.  I know that Splunk has logic to 'figure' it out, but I need to have it reformatted to the following:

  YYYY-MM-DDTHH:mm:ss<GMT offset>

 

Is there a way to accomplish this with INGEST_EVAL or other method?  If so how is it done?  This should change the _raw event(that is, this is not a search time question).  Kind of like a mask.

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @dokaas_2,

I know two solutions:

a pre-parsing script that reformat your logs before Splunk ingest them.

the SEDCMD command.

ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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