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

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...