Splunk Search

REGEX problem

splunklearner
Communicator

Please help me in extracting only compression values from this raw event - 

"response_time_last_byte":5,"compression_percentage":0,"compression":"NO_COMPRESSION_CAN_BE_COMPRESSED","client_insights":"","request_headers":577,"response_headers":13,"request_state":"AVI_HTTP_REQUEST_STATE_SEND_RESPONSE_BODY_TO_CLIENT",

"response_time_last_byte":1,"compression_percentage":0,"compression":"","client_insights":"","request_headers":3,"response_headers":12,"request_state":"AVI_HTTP_REQUEST_STATE_READ_CLIENT_REQ_HDR",

Tried this but it is extracting client insights as well. I need to exclude all compression string values by writing SEDCMD 

splunklearner_0-1739949982232.png

 

Labels (2)
0 Karma
1 Solution

livehybrid
Super Champion

 Hi @splunklearner 

Try using the following REGEX 

\"compression\":\"([^\"]*)\"\,

Please let me know how you get on and consider accepting this answer or adding karma this answer if it has helped.
Regards

Will

View solution in original post

livehybrid
Super Champion

 Hi @splunklearner 

Try using the following REGEX 

\"compression\":\"([^\"]*)\"\,

Please let me know how you get on and consider accepting this answer or adding karma this answer if it has helped.
Regards

Will

Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...