Dashboards & Visualizations

Extract value from Microsoft-windows-PrintService log

borshoff
Explorer

H!
We have MS-Windows-Printservice log, and we need to extract "Param*" Fields:

<Param1>156</Param1><Param2>***</Param2><Param3>****</Param3><Param4>\****</Param4><Param5>****</Param5><Param6>USB002</Param6><Param7>393069</Param7><Param8>1</Param8>

Source log:

<Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='Microsoft-Windows-PrintService' Guid='{747EF6FD-E535-4D16-B510-42C90F6873A1}'/><EventID>307</EventID><Version>0</Version><Level>4</Level><Task>26</Task><Opcode>11</Opcode><Keywords>0x4000000000000840</Keywords><TimeCreated SystemTime='2017-07-29T14:05:53.902748400Z'/><EventRecordID>164873</EventRecordID><Correlation/><Execution ProcessID='1392' ThreadID='46040'/><Channel>Microsoft-Windows-PrintService/Operational</Channel><Computer>888</Computer><Security UserID='88888'/></System><UserData><DocumentPrinted xmlns:auto-ns3='http://schemas.microsoft.com/win/2004/08/events' xmlns='http://manifests.microsoft.com/win/2005/08/windows/printing/spooler/core/events'><Param1>156</Param1><Param2>8888</Param2><Param3>88888</Param3><Param4>88888</Param4><Param5>*****</Param5><Param6>USB002</Param6><Param7>393069</Param7><Param8>1</Param8></DocumentPrinted></UserData><RenderingInfo Culture='en-US'><Message></Message><Level></Level><Task></Task><Opcode></Opcode><Channel></Channel><Provider></Provider><Keywords></Keywords></RenderingInfo></Event>

What props.conf we need?
Thx

0 Karma

sbbadri
Motivator

try below

[ testxmlst ]
CHARSET=UTF-8
DATETIME_CONFIG=CURRENT
KV_MODE=xml
NO_BINARY_CHECK=true
SHOULD_LINEMERGE=false
disabled=false
pulldown_type=true

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Quantify Your Splunk Investment Impact: Introducing Savings Metrics to Value Insights

Building on the foundation established in our initial Value Insights releases, we are introducing the Savings ...

Event Series: Telemetry Pipeline Management

Balancing Scale and Spend: Gaining Control Over High-Volume Metrics in Splunk Observability Cloud As ...

Kick the Tires Before You Commit: A Hands-On Tour of the Splunk Observability Cloud ...

Evaluating an enterprise observability platform usually goes like this: fill out a form, get a free trial with ...