11 Mar 2025 07:35 PM
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".
11 Mar 2025 09:18 PM
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).