Splunk Search

Multiple ways to access lookup transforms via REST, which should I use?

LukeMurphey
Champion

There are multiple ways to access lookup transforms via REST, including:

  1. data/transforms/lookups
  2. configs/conf-transforms
  3. properties/transforms/

Which one should I be using?

0 Karma
1 Solution

LukeMurphey
Champion

Here is when you ought to use each endpoint:

  1. If performing a write, use data/transforms/lookups
  2. If performing a read and you need fields_list, use data/transforms/lookups
  3. For everything else, use configs/conf-transforms

Generally, it is recommended that you avoid using data/transforms/lookups/ since this endpoint triggers some activity that can cause some unnecessary performance reduction and will generate a substantial number of log messages in the internal index.

If you need to access ACL information (i.e. namespace and owner) then you will need to use configs/conf-transforms since properties/transforms/ won't include it.

View solution in original post

LukeMurphey
Champion

Here is when you ought to use each endpoint:

  1. If performing a write, use data/transforms/lookups
  2. If performing a read and you need fields_list, use data/transforms/lookups
  3. For everything else, use configs/conf-transforms

Generally, it is recommended that you avoid using data/transforms/lookups/ since this endpoint triggers some activity that can cause some unnecessary performance reduction and will generate a substantial number of log messages in the internal index.

If you need to access ACL information (i.e. namespace and owner) then you will need to use configs/conf-transforms since properties/transforms/ won't include it.

hazekamp
Builder

We recommend the following GET arguments when pinpointing lookups using configs/conf-transforms. This is because transforms.conf houses all manner of properties.

getargs = {'output_mode': 'json', 'count': 0, 'search': 'filename=* OR collection=* OR external_type=*'}

Of course, if you're targeting a specific transform by name, this is not needed.

0 Karma
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 ...