You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be beneficial to extend Grok’s current functionality by allowing users to specify the type of attribute value to extract. At present, all semantic values are stored as strings by default. However, users might want to convert the extracted values into different data types for further processing.
Proposed Enhancement:
Add support for additional data type conversions within Grok patterns. Users can specify the target data type by suffixing the semantic in the pattern, such as %{NUMBER:num:int} to convert the num semantic from a string to an integer.
For instance, this pattern:
%{NUMBER:Basic:float} %{NUMBER:Basic_long:long}
would convert the Basic semantic to a float and Basic_long to a long integer 🌟
The text was updated successfully, but these errors were encountered:
Description:
It would be beneficial to extend Grok’s current functionality by allowing users to specify the type of attribute value to extract. At present, all semantic values are stored as strings by default. However, users might want to convert the extracted values into different data types for further processing.
Proposed Enhancement:
Add support for additional data type conversions within Grok patterns. Users can specify the target data type by suffixing the semantic in the pattern, such as
%{NUMBER:num:int}
to convert the num semantic from a string to an integer.For instance, this pattern:
would convert the Basic semantic to a float and Basic_long to a long integer 🌟
The text was updated successfully, but these errors were encountered: