Hello,
I am attempting to utilize a pipeline that is for populating a json yml that looks like this:
{"name":"PCNAME","collectionname":"Early Adopters - Ring 2 - Office","resourceid":16778707,"@version":"1","@timestamp":"2020-02-04T18:03:18.517Z","model":"HP EliteBook 840 G3","osversion":"10.0.17763","oscaption":"Microsoft Windows 10 Enterprise","systemtype":"x64-based PC","osbuildnumber":"17763"}
Here is the translate filter bit of the metricbeat.conf:
filter {
translate {
field => "[agent][hostname]"
destination => "[name]"
dictionary_path => "c:\dls\data.yml"
}
}
Here is the event coming from metricbeat:
"@timestamp" => 2020-02-05T14:18:37.043Z,
"agent" => {
"id" => "1b1abcc6-408d-45fe-b7b3-86fda2b947a5",
"version" => "7.3.2",
"ephemeral_id" => "372c49be-62a2-4d60-bcd2-3f41cea7e77b",
"hostname" => "PCNAME",
"type" => "metricbeat"
},
"event" => {
"dataset" => "windows.service",
"module" => "windows",
"duration" => 6166889200
},
"@version" => "1",
"tags" => [
[0] "beats_input_raw_event"
],
"windows" => {
"service" => {
"path_name" => "C:\\WINDOWS\\system32\\svchost.exe -k UnistackSvcGroup",
"pid" => 13204,
"start_type" => "Automatic",
"start_name" => "",
"state" => "Running",
"id" => "K_Ny14sFEE",
"uptime" => {
"ms" => 5033732
},
"display_name" => "Windows Push Notifications User Service_256594",
"name" => "WpnUserService_256594"
}
},
"ecs" => {
"version" => "1.0.1"
},
"metricset" => {
"name" => "service"
}
}
My end goal is to lookup on the name, and add a field to include the collectionname, etc fields.
Any help would be appreciated.
Thanks,