write splunk query to find request id in javascript

To find the request ID in JavaScript log files using Splunk, you can use the rex command to extract the desired value using regular expressions. Here's an example query:

index.tsx
index=<your_index> sourcetype=<your_sourcetype> | rex field=_raw "Request ID: (?<request_id>\w+)" | table request_id
117 chars
2 lines

This query searches for logs in your specified index and sourcetype, extracts the value after "Request ID:" using the rex command, and creates a table that displays the extracted request ID. You can adjust the regular expression used in the rex command to fit the specific format used in your logs.

gistlibby LogSnag