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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...