Overview
The cases in this document will help you get a general and perceptual understanding of data processing. You can write your own data processing scripts according to the examples mentioned below .
Common Mistakes
v function: v("Field A"), which means "value of 'Field A'", that is, the value of Field A. Among the parameters of data processing functions, some are fields, such as fields_drop("Field A"), and some are field values. In such cases, the v function needs to be used to obtain the values. For example, str_len(v("Field A")). A common mistake made by beginners is that when the parameter is a field value, they fail to use the v function to obtain the field value, resulting in the failure of the function execution. Log distribution: the target log topics and their target names need to be configured in advance. The target names will be used in the distribution functions.
fields_set function: the fields_set
function is used to set field values and store the content processed by data processing function. For example, fields_set("A+B",op_add(v("Field A"),v("Field B")))
is to add the values of fields A and B, and the op_add function needs to leverage the fields_set
function to complete result writing and storage. Overview
You can refer to the following cases to complete your data processing:
Was this page helpful?