how to define a static field on a data source

0

Hi,

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

Thanks

Share This Post:

3 comments

Date Votes
0
Avatar
Rupsan Shrestha

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.

0
Avatar
Gaurav Khatri

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.

0
Avatar
Irakli Edjibia

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

Please sign in to leave a comment.