Hi I have log like this:
2022-02-01 11:59:59,869 INFO CUS.AbCD-Host-000000 [AppListener] Receive Packet[0000000*]: Cluster[String1.String2]
How can I extract String1 and String2 separately with a single rex like this?
Cluster\[(?<GroupREX>\w+\.\w+)
Any idea?
Thanks,
Hi @indeed_2000 ,
if you're sure that the division between strings is dot, you could use a regex like this:
| rex "Cluster\[(?<string1>[^\.]+)\.(?<string2>[^\]]+)"
that you can test at https://regex101.com/r/5r3Mvp/1
Ciao.
Giuseppe
Cluster\[(?<String1>\w+)\.(?<String2>\w+)\]