All Apps and Add-ons

Global Transforms

Marinus
Communicator

How do you specify transforms that will be applied globally?

Tags (1)
0 Karma
2 Solutions

gkanapathy
Splunk Employee
Splunk Employee

I suggest you avoid doing this, but either:

  • Put it at the top of the props.conf file
  • Apply it to [source::...]

What are you trying to do with a global transform that you can't do with a more specific source, sourcetype, or host pattern match?

View solution in original post

0 Karma

Lowell
Super Champion

To add to what gkanapathy said. I suggested against this. Especially the [source::...] option. Because, if you add this stanza, then all other source-based props settings will no longer match. This is because this is because all first stanza to match so everything else will be ignore. See the docs: http://docs.splunk.com/Documentation/Splunk/5.0/admin/Propsconf

In other words, if you have a log file /var/log/httpd/error_log, it will not be assigned the sourcetype of apache_error, and WinEventLog events will no longer be split apart properly, ...

Not that I've tried this to confirm the behavior, but it can't be good.

View solution in original post

0 Karma

samcogheil
Explorer

Just to note: Since 5.0 - you can now use the [default] stanza.

0 Karma

Lowell
Super Champion

To add to what gkanapathy said. I suggested against this. Especially the [source::...] option. Because, if you add this stanza, then all other source-based props settings will no longer match. This is because this is because all first stanza to match so everything else will be ignore. See the docs: http://docs.splunk.com/Documentation/Splunk/5.0/admin/Propsconf

In other words, if you have a log file /var/log/httpd/error_log, it will not be assigned the sourcetype of apache_error, and WinEventLog events will no longer be split apart properly, ...

Not that I've tried this to confirm the behavior, but it can't be good.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

I don't believe this is the case. All matching stanza rules in props.conf are applied to events.

gkanapathy
Splunk Employee
Splunk Employee

I suggest you avoid doing this, but either:

  • Put it at the top of the props.conf file
  • Apply it to [source::...]

What are you trying to do with a global transform that you can't do with a more specific source, sourcetype, or host pattern match?

0 Karma

Jason
Motivator

A transform to pull information from a hostname and add fields accordingly (where the entire company conforms to a naming convention) would be useful for this as well, so it applies to all data.

0 Karma

BobM
Builder

I'm not sure what he is doing but I am trying to mask out credit card numbers no matter where they appear in any log.
Putting it at the top of the file works for me.

0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...