Field Transformation
Most recent version: v0.3.3
Last updated
Was this helpful?
Most recent version: v0.3.3
Last updated
Was this helpful?
See the changelog of this Action type .
The Field Transformation action acts as a container that enables users to perform a wide range of operations on data, including encoding and decoding various types of encryption, format conversion, file compression and decompression, data structure analysis, and much more. The results are stored in new events fields.
In order to configure this action, you must first link it to a Listener or other Action. Go to Building a Pipeline to learn how to link.
AI Action Assistant
This Action has an AI-powered chat feature that can help you configure its parameters. Read more about it in this article.
These are the input and output ports of this Action:
Find Field Transformation in the Actions tab (under the Transformation group) and drag it onto the canvas.
To open the configuration, click the Action in the canvas and select Configuration.
Enter the required parameters:
Field to transform*
Choose a field from the linked Listener/Action to transform in your Action using the drop-down.
Add as many fields as required using the Add New Field button.
Operations*
Please bear in mind that the options available in this window will depend on the field to transform.
Add as many Operations as required using Add Operation. You can also use the arrow keys on your keyboard to navigate up and down the list.
If you have added more than one operation, you can reorder them by dragging and dropping them into position.
Test your operation
Before saving your action, you can test it to see the outcome.
Type a message in the Input field and see it transformed in the Output field after passing through the selected operation(s).
Output field*
Give a name to the transformed field and click Save to complete.
Click Save to complete the process.
Here is an example of a data set on the Bytes in/out from IP addresses.
We can use the field transformation operations to reduce the quantity of data sent.
We have a Syslog Listener, connected to a Parser.
Link the Parser to the Field Transformation action and open its configuration.
We will use the To IP Hex and CRC32 operations.
DESTINATION_IP_ADDRESS: 192.168.70.210518
DestinationIPAddressHex: c0.a8.46.d2.224
DESTINATION_HOST: server.example.com
DestinationHostCRC32:
0876633F
Transform the Destination IP to hexadecimal to reduce the number of characters.
192.168.70.210518
c0.a8.46.d2.224
Field>Parser: DESTINATION_IP_ADDRESS
Operation: To IP Hex
Output Field: DestinationIPAddessHex
Add a new field for Destination Host to CRC32
Codify the Destination Host as crc32 to transform the machine name into 8 characters.
server.example.com
0876633F
Field>Parser: DESTINATION_HOST
Operation: Crc32
Output field: DestinationHostCrc32