Question

how to define a static field on a data source


Userlevel 1

Hi, 

I need to define a static field on a data source, like ‘datacenter=Paris’. What is the best way to achieve that ?

Thanks


3 replies

Userlevel 2
Badge +3

Hello,

You can do this by using enrichment.

You can add a custom enrichment source which contains the data source and datacenter information. Then this source can be used in enrichment policy with rules like; data source must be present for the enrichment criteria, and data source matches the one in the csv.

This will add additional fields to the logs based on your enrichment source, like “datacenter=Paris”

Hope this answers your question.

Userlevel 1
Badge +3

Hi Jerome,

Rupsan’s answer is definitely the recommended way to go.

Alternatively, if you find that you are using normalization packages instead of compiled normalizers for the said device, then you can also clone the corresponding vendor normalization packages and edit the signatures to add a new field as datacenter = Paris.

Userlevel 1

Hi,

both previous answers are correct, nevertheless there is an other way by creating a labeling package and add Paris as a label to the logs.

Greetings

Irakli

Reply