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

Parse After Colon

jacob_norkus
Dynatrace Enthusiast
Dynatrace Enthusiast
Hey Team, how do we parse data after a colon? For example here is a snippet from the log
"mvcLastloginTimestamp":"1697106375080","thisCustomerNum":"123456789","objectClass":
We're looking to parse out the customerNum without the beginning ":" and ending quote.
The following parse command includes the colon and ending quote 
 

 

| Parse content, "LD 'thisCustomerNum' LD:ID ',' "

 

I can't seem to get the syntax just right to avoid the colon and ending quote. Thanks in advance!
2 REPLIES 2

gbaudart
DynaMight Champion
DynaMight Champion

Hi
Do you have test this :

| parse content,"LD 'thisCustomerNum\":\"' LD:ID '\",' "

Let me know if this works

 

Observability Consultant - Dynatrace Associate Certified

gbaudart
DynaMight Champion
DynaMight Champion

@jacob_norkus , Were you able to test my suggestion?

Observability Consultant - Dynatrace Associate Certified

Featured Posts