Monitoring Splunk

How to set SHOULD_LINEMERGE = false as default when using monitor to upload data?

yunieyuna
New Member

Hi, I need to upload a bunch of logs into Splunk by using monitor directory function.
But the data will be merged together if the "SHOULD_LINEMERGE" set to "true". I already known how to set it when uploading one file, but not using "monitor.

Can any one please help me?

Tags (1)
0 Karma

woodcock
Esteemed Legend

Do not use the GUI for onboarding new data. Use the CLI and create an app with the settings that you need in the default folder.

0 Karma

harsmarvania57
Ultra Champion

Hi,

In this case create new unique sourcetype and assign it to monitor stanza and on Indexer/Heavy Forwarder implement below config.

props.conf

[yourSourcetype]
SHOULD_LINEMERGE = false
0 Karma

yunieyuna
New Member

Hello Harsmarvania57,

Thank you so much for your answer!

Actually, I ran into another problem when I tried to create a new sourcetype.
I set SHOULD_LINEMERGE = false under the Advanced tab. However, every time I clicked Save button, the setting will automatically changed to "true". And the same situation happens again and again.

I added two screenshots as references.

Goal: ![alt text][https://ibb.co/0n5ngG3]
However: ![alt text][https://ibb.co/b1h5zjM]

0 Karma

harsmarvania57
Ultra Champion

As @woodcock suggested, it will be good to use CLI instead of GUI. Most of the work I do on CLI instead of GUI.

0 Karma

pir8radio
Path Finder

Then please include instructions how to do that in windows splunk.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...