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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...