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!

Unlocking Unified Insights: New Gigamon Federated Search App for Splunk

In today’s data-heavy environment, organizations are caught in a data distribution dilemma. As data volumes ...

GA: New Data Management App in Splunk Platform

Streamlining Data Management: Introducing a unified experience in Splunk Managing data at scale shouldn’t feel ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...