Getting Data In

How apply SEDCMD after TRANSFORMS?

Jakub
Explorer

Hello All, 

My issue is:

We are receiving files from Source1, where are more types of logs. We want to split them and send them into another indexes. Issue is that there are no some unique fields in the logs, so its difficult to create REGEX in transform.conf. 

Sep 21 08:48:29 10.128.38.16 2021-09-21 06:48:28.7004|INFO|Robot|21.09.2021 08:46:21|21.09.2021 08:48:28|AttendedBot|OK|Account: ....

 

Hence we have decided to put  FLAG there. --  "Y@9?"

Sep 21 08:48:29 10.128.38.16 2021-09-21 06:48:28.7004|INFO|Y@9?|Robot|21.09.2021 08:46:21|21.09.2021 08:48:28|AttendedBot|OK|Account: ....

  

And now I would like to trigger this flag  in transform.conf (lets say send it to new index) and after that remove it by SEDCMD. Everything works fine, SEDCMD and transforms.conf when they are not configured at the same time, but when they are, the SEDMCD is applied first so transfrom.conf has nothing to trigger. 

 

Question is:

         Is there possibility to apply transform.conf before SEDCMD?

 

Thank you very much.

Labels (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

The precedence order is fixed.  See https://community.splunk.com/t5/Getting-Data-In/Is-there-any-way-to-execute-SEDCMD-after-transforms-...

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The precedence order is fixed.  See https://community.splunk.com/t5/Getting-Data-In/Is-there-any-way-to-execute-SEDCMD-after-transforms-...

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...