In pipeline rule i want unique ID for my every log input.
Mar 18 06:25:03 ADSHUB
Mar 18 06:35:01 ADSHUB
Mar 18 06:35:01 ADSHUB
Mar 18 06:39:01 ADSHUB
Mar 18 06:39:01 ADSHUB
Mar 18 06:45:01 ADSHUB
Mar 18 06:45:01 ADSHUB
rule "IISLogs"
when
has_field(“message”)
then
let pattern = “%{ServerLog}”;
let matches = grok(pattern: pattern, value: to_string($message.message));
set_fields(matches);
set_field(“LogCreated”, to_date($message.“timestamp”));
set_field(“Hostname”, to_string($message.“host”));
end
I want to add unique id (UID) for all the above inputs in pipeline rule .
Timestamp: Mar 18 06:39:01
HOST: ADSHUB
UID: U1(Unique id with any combination)
Is there any function avail or how i can implement this UID in pipeline rule?
Thanks