cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Not sure how to dpl this line

vm_molson
Newcomer

I'm very new and used to working with RegEx. We're switching over to DT now and I used to be able (in our other tool) pull the application version of one of our monitored applications with RegEx.

I've been trying to use the documentation to figure this out, but I am a little stuck. I am wondering if someone could give me a hint as how to go about extracting the version from this log?

2025-01-15 10:35:00,738 20987821 [Application Provider service queue #2[req=123456,id=12345678]] INFO a.b.c.d.e.f.g.ApplicationServiceQueue - UpdateInfoForAccts, numAccts: 1821, numSubAccts: 12193, numSeconds: 20, startBusy: 71%, beginBusy: 52%, activeBusy: 95%, endBusy: 8%, identifier: 123456789, xyLogged: true version: release/5.5.555-7

Ideally I want to just grab "5.5.555-7".

1 REPLY 1

Julius_Loman
DynaMight Legend
DynaMight Legend

What about something like this?

data record(line= "2025-01-15 10:35:00,738 20987821 [Application Provider service queue #2[req=123456,id=12345678]] INFO a.b.c.d.e.f.g.ApplicationServiceQueue - UpdateInfoForAccts, numAccts: 1821, numSubAccts: 12193, numSeconds: 20, startBusy: 71%, beginBusy: 52%, activeBusy: 95%, endBusy: 8%, identifier: 123456789, xyLogged: true version: release/5.5.555-7") 
| parse line, """LD 'version:' SPACE 'release/' [^ ]*:version"""

 (you probably want the DPL from parse command  only).

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts