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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...