All Apps and Add-ons

How to define sections in files?

liav_koren
Engager

Dear community!

I'm monitoring a folder with CSV files, and in each file there are two tables in the same sheet.

Is there any way to define each section into 2 sourcetypes or sources?

Thank you for your help 😄

 

Labels (4)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @liav_koren,

if in each row of your file there's something that (with a regex) can be used to identify if the raw belongs to the first or the second sourcetype, it could be possible define a sourcetype and override the second using the regex.

If not, the only way is pre_processing the file with a script that creates two files.

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @liav_koren,

if in each row of your file there's something that (with a regex) can be used to identify if the raw belongs to the first or the second sourcetype, it could be possible define a sourcetype and override the second using the regex.

If not, the only way is pre_processing the file with a script that creates two files.

Ciao.

Giuseppe

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!

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...