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

 

Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...