Skip to main content

Open Integration Manager Preprocessing Functions

Before being ingested into BigPanda, the Open Integration Manager performs preprocessing functions on some complex integrations. Preprocessing functions are essential components of OIM that transform, delete, create, or update incoming data before it reaches OIM. This allows the data to be mapped appropriately to tags in BigPanda. You can view these functions in the Integration Manager tab within OIM.

Preprocessing rules let you reshape source data so it maps cleanly to BigPanda tags. For example, you can extract a percentage from an alert description into a new tag, normalize tag names, parse key:value strings, or clean up source fields after they have been used.

View Preprocessing Functions

Preprocessing functions are visible within the Integration Manager tab in OIM integrations. To view preprocessing functions used on the integration, click the Settings cog icon.

https://files.readme.io/c5847ca-Integrations_OIM_Preprocessing.png​​

No preprocessing functions

If there are no preprocessing functions performed on the integration, the Settings cog icon will be greyed out and display the number zero next to it.

The Preprocessing Functions window shows all global and custom functions applied for the integration. Click the arrow on the preprocessing function box to expand details about the function. The following information is available:

  • Function name

  • Description

  • Source tags

Integrations_OIM_PreprocessingScreen.png

On the right side of the screen, a sample payload preview is available.

Available Preprocessing Functions

Global Preprocessors

These preprocessing functions are used out of the box for all Open Integration Manager integrations of the related type:

Function name 

Description 

Integrations 

dateToString

Converts a date string or epoch string into a formatted date string.

Splunk 

valueMap

Translates values based on a setstatic map.

Entuity 

AppDynamics 

duplicate

Duplicates the selected tags in the payload, adding with a prefix.

Datadog 

AppDynamics 

split

Splits a string into an array of items.

Datadog 

addTag

Adds a new tag to the payload.

Splunk 

keyValuePairParser

Parses an array of strings into separate tags containing each value to create a key value entry in the object.

Datadog 

sanitizeMarkdown

Converts markdown to regular text.

Datadog 

replace

Replaces the tag or value for a given tag.

Splunk 

Datadog 

LogScale 

mathOps

Runs a math operation made up of an expression and arguments.

Splunk 

timeStringToSeconds

Turns a time string such as 1h or 2m into seconds.

Splunk 

decodeURI

Decodes URI encoded strings.

Entuity 

regexExtraction

Uses a regular expression to extract a value from a tag into a new tag name.

CloudWatch 

coalesceToTag

Checks for the presence of each tag in the payload, finds the first match containing a value, and assigns it to the value in coalescedTagName as well as the value in the payload.

CloudWatch 

deleteTag

Deletes a tag in the payload.

CloudWatch 

Splunk 

findAndMoveItemUp

Finds an object in an array and moves it up one level as a single object. Item object is passed into the expression.

CloudWatch 

cloudwatch_processDimensions

Loops through the dimensions array in a CloudWatch alert and sets specific properties for the object and dimensions key.

CloudWatch 

cloudwatch_processMetrics

Loops through the metrics array in a CloudWatch alert and expression, operator and check property.

CloudWatch 

cloudwatch_processSubscriptionConfirmation

Processes the CloudWatch subscription confirmation type. The message does not result in an alert and does not go to OIM.

CloudWatch 

stringToObject

Parses a string and converts it to a JSON object.

CloudWatch 

Custom Preprocessors

These preprocessing functions are available to be added to Open Integration Manager integrations:

Function name

Description

addTag 

Adds a new tag to the payload with a static value.

changeObjectToArray 

Converts a nested object into an array of keys or values.

coalesceToTag 

Checks a list of tags in order and assigns the first non-empty value to a new tag.

dateToString 

Converts a date string or epoch value into a formatted ISO 8601 date string.

decodeURI 

Decodes URI-encoded strings.

deleteTag 

Removes a tag from the payload by matching on tag name or value.

duplicate 

Duplicates a tag, adding a duplicate_ prefix to the copy.

findAndMoveItemUp 

Searches a nested array for a matching item and promotes it to a top-level tag.

joinTags 

Combines the values of multiple tags into a single tag using a delimiter.

keyValuePairParser 

Parses an array of key:value strings into individual tags.

mathOps 

Runs a math expression against tag values. Supports the math.js function library.

regexExtraction 

Uses a regular expression to extract a value from a tag into a new tag.

replace 

Replaces characters or patterns within tag names or values. Supports @ALL for bulk normalization.

sanitizeMarkdown 

Strips markdown formatting from a tag value.

shortenUrl

Shortens the URL to fit character limits.

split 

Splits a delimited string into an array of items.

stringToObject 

Parses a JSON string into a structured object so nested fields are addressable.

switchCaseTagValue 

Converts tag values to upper or lower case.

timeStringToSeconds 

Converts a duration string such as 1h or 2m into seconds.

valueMap 

Translates tag values using a static lookup table, with a fallback for unmatched values.

zipArray 

Converts an array of key-value objects into individual tags.