Getting Data In

unable to retrieve string from a big string with special symbols. Any help?

indianhans
Engager

Hi Wish to retrieve hammadahmad from below string. Below string contain html tag ( & a p o s ; ) without space.

  • String = &a pos;hammadahmad&ap os; (service Active Directory)
  • Current Regular Expression : | rex "Session login, user(?P/<USER/>.*?)logging in from machine"

alt text

Any help will be appreciated.

0 Karma

sduff_splunk
Splunk Employee
Splunk Employee
rex field=USERNAME "&apos;(?<user>\S+)&apos;"
Get Updates on the Splunk Community!

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...