Security

How can we extract an ldap (Oracle) directory audit file event?

ddrillic
Ultra Champion

We have in the ldap (Oracle) directory audit file, the following layout -

time: 20180724072339
dn: uid=<uid>,ou=people,dc=<dc>,dc=com
changetype: modify
replace: passwordRetryCount
passwordRetryCount: 2
-
add: pwdFailureTime
pwdFailureTime: 20180724122331.986Z
-
<blank line>

How can we extract the event from the time: part until the blank line?

Tags (2)
0 Karma
1 Solution

somesoni2
Revered Legend

Let's give this a try first (props.conf on your indexer/heavy forwarder)

[YourSourcetype]
LINE_BREAKER =([\r\n]+))(?=time\:\s*\d+)
SHOULD_LINEMERGE = false
TIME_PREFIX = ^time\:\s*
TIME_FORMAT = %Y%m%d%H%M%S
MAX_TIMESTAMP_LOOKAHEAD = 14

View solution in original post

0 Karma

somesoni2
Revered Legend

Let's give this a try first (props.conf on your indexer/heavy forwarder)

[YourSourcetype]
LINE_BREAKER =([\r\n]+))(?=time\:\s*\d+)
SHOULD_LINEMERGE = false
TIME_PREFIX = ^time\:\s*
TIME_FORMAT = %Y%m%d%H%M%S
MAX_TIMESTAMP_LOOKAHEAD = 14
0 Karma

ddrillic
Ultra Champion

Gorgeous @somesoni2 as usual. Please convert to an answer ; -)

0 Karma

somesoni2
Revered Legend

So you want to consider event boundary from time:... till next blank line (or next time:...)?

0 Karma

ddrillic
Ultra Champion

I guess until next blank line would be great...

0 Karma

ddrillic
Ultra Champion

@somesoni2 - any thoughts about this one?

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...