Skip to content

SLF LOG

Description

The SLF LOG processor is a post-aggregation processor designed to execute Groovy expressions on consolidated data blocks. This processor is particularly useful for performing complex data manipulations or transformations that are not directly supported by the standard consolidation process. It supports all data types, including BLOBs, making it versatile for various data processing needs.


Config Location

To configure the SLF LOG processor, you need to define it within the consDPProcessors section of your data point configuration within the schema. This involves specifying the processor name and entity.


Supported Data Types

  • String
  • Json
  • Boolean
  • BLOB
  • Integer
  • Double
  • Decimal

Config Requirements

Config ({}) options are required for the SLF LOG processor. If no configuration is provided or if the configuration is improperly set up, a block violation will be thrown. For more information on Apiro violations and their appearance in the Apiro UI or logs, refer to the violations section.


Example Config

Below is an example of how to configure the SLF LOG processor in XML format:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
<dataPoint name="NAME" dataType="STRING">
    <consDPProcessors>
        <consDPProcessor name="LOG_DATA" entity="SLF_LOG">
            <config>
                <![CDATA[
                    {
                        "a":"log",
                        "b":12,
                        "c":true
                    }
                ]]>
            </config>
        </consDPProcessor>
    </consDPProcessors>
</dataPoint>

Example Result

Upon successful configuration and execution, the SLF LOG processor will execute the specified Groovy expression on the consolidated data block, allowing for complex data manipulations or transformations to be applied.


Config Parameters

name acceptable values comment
a A string representing the action to be performed by the Groovy expression. This defines the action to be performed.
b An integer value that can be used in the Groovy expression. This value can be used in the expression for calculations or comparisons.
c A boolean value that can be used in the Groovy expression. This value can be used in the expression for conditional logic.

Common Mistakes

  • Ensure that the processor name and entity are correctly defined in the configuration to ensure that the processor is correctly identified and applied during the data processing pipeline.
  • Verify that the configuration parameters within the <config> tag are correctly written and match the expected format and values.
  • Remember that the configuration for the SLF LOG processor is required. If no configuration, or improper configuration is provided then a block violation will be thrown.