Getting Data In

Extract timestamp in db2audit

edwardman88
Explorer

Hi, I need Splunk to recognize the timestamps down to microseconds.

A sample event is listed below

"2014-06-03-18.30.02.188462","SYSADMIN","DB2AUDIT",2,0,"","dsbdbadm","DSBDBADM",,,"*LOCAL.dsbdbadm.140603103002","db2audit",,,,,,,,,,,,,,,

test]
TIME_PREFIX = ^"
TIME_FORMAT = %Y-%m-%d-%H.%M.%S.%6N

But didn’t work.
Any suggestion?

Thanks.

Tags (1)
0 Karma

edwardman88
Explorer

I try to change the setting

In the props.conf
[test]
SHOULD_LINEMERGE=false
TIME_FORMAT=\"%Y-%m-%d-%H.%M.%S.%6N\"
In the inputs.conf

[monitor:///audit/03/instance/audit.del]
sourcetype = test
source = sat
index = sat

But splunk still can't get the log

We try delete the microseconds in the audit.del, the splunk can get the log.

Please advise!

0 Karma

somesoni2
Revered Legend

This worked fine with your sample data

[timetest]
SHOULD_LINEMERGE=false
TIME_FORMAT=\"%Y-%m-%d-%H.%M.%S.%6N\"
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Have you tried omitting TIME_PREFIX?

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

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 ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...