Below is my sample log,
05:59:26,173 INFO [LoggingAspect] (ajp-/10.248.156.65:8909-11) User Logged : vleeladh into the method : saveFilters with Parameter : {"userId":"vleeladh","tier":"[]","marketarea":"[]","businessunit":"[]","site":"
I want to extract the userId (vleeladh) from the log.
Can someone please assist me?
Like this:
... | rex "{\"userId\":\"(?<userId>[^\",]+)"
Try like this
your base search | rex "\"userid\":\"(?<userId>[^\"]+)"