icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

We are working on something new...

A Fresh New Splunkbase
We are designing a New Splunkbase to improve search and discoverability of apps. Check out our new and improved features like Categories and Collections. New Splunkbase is currently in preview mode, as it is under active development. We welcome you to navigate New Splunkbase and give us feedback.

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading pointerset
SHA256 checksum (pointerset_141.tgz) fbff153a334de835dfb55cc6816fd31f3b78db68d28cb8c14800749872463fea SHA256 checksum (pointerset_13.tgz) 4406eb50f80929b8cba5c7fc40653f115b08062d2ed7ef52f421c49463c67ee0
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

pointerset

This app has been archived. Learn more about app archiving.
This app is NOT supported by Splunk. Please read about what that means for you here.
Overview
Details
Similar to pointers in C, this allows you to dereference a field like a pointer to fetch a value from another field.

Usage: | pointerset threshold pointer=threshold_pointer_field ptrFieldFilter="perc*|*outlier_threshold" default=0

| makeresults
| eval Field1=1
| eval Field2=2
| eval Field3=3
| eval Field4=4
| eval pointer_field="Field4"
| pointerset newField pointer="pointer_field"

| Field1 | Field2 | Field3 | Field4 | pointer_field | newField |
| 1 | 2 | 3 | 4 | Field4 | 4 |

Similar to pointers in C, this allows you to dereference a field like a pointer to fetch a value from another field.

OVERVIEW

pointerset <target_field> pointer=<ptrField> ptrFieldFilter="srcField-1|srcField-2|srcPattern*" default=<default value>

target_field:
- The field to create and set
- Required

pointer:
- The field that contains the name of the field with the value we want to set target_field to.
- Required
- If the field doesn't exist on the event the default is used

ptrFieldFilter:
- This option can accept basic patterns for mattching with a *, no other wildcard characters are available.
- Multiple field/field patterns can be specified using pipes: "Field*|OtherPattern*|*_MySuffix"
- Optional, default value is * (all fields)
- Warning: Performance over large datasets almost requires you to specify the ptrFieldFilter option. This list should only contain field names that 'pointer' can point to.

default:
- Optional, default value is ""

Basic example


| makeresults
| eval Field1=1
| eval Field2=2
| eval Field3=3
| eval Field4=4
| eval pointer_field="Field4"
| pointerset newField pointer="pointer_field"

Field1 Field2 Field3 Field4 pointer_field newField
1 2 3 4 Field4 4

 

 

Larger datasets:

For larger datasets be sure to specify the ptrFieldFilter otherwise performance will be impacted:

| makeresults
| eval Field1=1
| eval Field2=2
| eval Field3=3
| eval Field4=4
| eval pointer_field="Field4"
| pointerset newField pointer="pointer_field" ptrFieldFilter="Field*"

Release Notes

Version 1.4.1
Sept. 17, 2020
Version 1.3
July 12, 2019

Added appIcon


Subscribe Share

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk Inc. in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.