Getting Data In

How to import data from file *.log from Active Directory to SPLUNK?

mazurmateusz
Engager

Hello All,

After uploading Windows Active Directory data from file '.log' to SPLUNK, i recognized that all data is not parsed.

To be honest- data looks like trash 😕 (imported as a one big row_event)

Any advice how to parse data from log file to let's say format readable from SPLUNK?
Maybe you know some scripts or any other way to parse file with extension '.log' to SPLUNK.

thanks in advance,

Mateusz

0 Karma
1 Solution

woodcock
Esteemed Legend

Somebody probably redefined LINE_BREAKER in the global props.conf file (either $SPLUNK_HOME/etc/system/default/ or ${SPLUNK_HOME}/etc/system/local/). The right thing to do is to move his global-context configuration changes to an app (context) and then your stuff (and others in the future) will work as they should right out of the box. Short of that, create an app for your stuff (which you should really do anyway in $SPLUNK_HOME/etc/MyApp/default/props.conf) and put this line in it:

LINE_BREAKER = ([\r\n]+)

Read up on all this here:
http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Indexmulti-lineevents

View solution in original post

woodcock
Esteemed Legend

Somebody probably redefined LINE_BREAKER in the global props.conf file (either $SPLUNK_HOME/etc/system/default/ or ${SPLUNK_HOME}/etc/system/local/). The right thing to do is to move his global-context configuration changes to an app (context) and then your stuff (and others in the future) will work as they should right out of the box. Short of that, create an app for your stuff (which you should really do anyway in $SPLUNK_HOME/etc/MyApp/default/props.conf) and put this line in it:

LINE_BREAKER = ([\r\n]+)

Read up on all this here:
http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Indexmulti-lineevents

mazurmateusz
Engager

Thanks for answer - I'm going to check this and give back information.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...