Getting Data In

How to extract multiple timeformats

mwdbhyat
Builder

Hi,

I have a series of devices coming into a syslog server. The format for the devices is as follows:

3 different formats:
mm/dd/hh:mm:ss
hh:mm:ss
d h

How do I configure timestamp formats for this if they are all the same sourcetype?

Thanks

0 Karma
1 Solution

cpetterborg
SplunkTrust
SplunkTrust
0 Karma

cpetterborg
SplunkTrust
SplunkTrust

See this article. It is probably all you need:

https://www.splunk.com/blog/2014/04/23/its-that-time-again.html

0 Karma

mwdbhyat
Builder

Thanks for that!

0 Karma

woodcock
Esteemed Legend
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi mwdbhyat,
try using the default sourcetype recognition, you can test it downloading an example of each one of your logs and trying to ingest using web interface.
If this methid doesn't recognize your logs, you have to use different sourcetypes for each one.
Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...