Splunk Enterprise

How to do field extractions for response time and info via sourcetype?

mahesh27
Communicator

My sample logs:
2022-11-12 04: 12:34, 123 [IMP] [application thread=1:00] - http:com.ap.ddd.group.ll.clentip.DDDLLClientApplication-<overalltimetaken> (100)  11/12/22 5:12 AM to 11/25/23 5:12 AM  4  hr DDDLLClientApplication - Done
2022-11-12 04: 12:34, 123 [IMP] [application thread=1:00] - http:com.ap.ddd.group.ll.clentip.DDDLLClientApplication-<overalltimetaken> (100)  11/12/22 5:12 AM to 11/25/23 5:12 AM  10  hr DDDLLClientApplication - Done
2022-11-12 04: 12:34, 123 [IMP] [application thread=1:00] - http:com.ap.ddd.group.ll.clentip.DDDLLClientApplication-<overalltimetaken> (100)  11/12/22 5:12 AM to 11/25/23 5:12 AM  12  hr DDDLLClientApplication - Done

here i want to get the response time from 12 hr ,10hr which are mentioned in the sample logs and  i need to get the info by using the DDDLLClientApplication - Done 
i want to do field extractions for response time and info 
here i want to do via sourcetype, and the type should be inline

mahesh27_0-1669676489766.png

Labels (1)
0 Karma
1 Solution

yuanliu
SplunkTrust
SplunkTrust

Do you mean the regex to use?

\s(?<reponse_time>\d+\s+hr)\s+DDDLLClientApplication - Done

 

View solution in original post

yuanliu
SplunkTrust
SplunkTrust

Do you mean the regex to use?

\s(?<reponse_time>\d+\s+hr)\s+DDDLLClientApplication - Done

 

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...