Getting Data In

Regular expression in props.conf

kml_uvce
Builder

I have an output

lifesize_cdr: INFO 24,16,8CC 9-107-Photon,172.20.129.30,,,,2012-02-07 16:22:21,2012-02-07 16:22:21,00:00:00,In,PSTN,None,0,0,,,,,,,No,No,None,Normal,0.000,0.000,0,0,0.000,0.000,0,0,0.000,0.000,0,0,0.000,0.000,0,0,0.000,0.000,0,0,0.000,0.000,0,1295,vtc-9-108-Tachyon.8cc

I have matched 1295 by this in props.conf

EXTRACT-lsCDR_lifesize_name= (?i)lifesize_cdr: INFO \d+,\d+(,.*?){46},(?P<lsCDR_lifesize_name>.*?),

but for vtc-9-108-Tachyon.8cc both (below) are not matching

EXTRACT-lsCDR_lifesize_name2= (?i)lifesize_cdr: INFO \d+,\d+(,.*?){47},(?P<lsCDR_lifesize_name2>.*?),

or

EXTRACT-lsCDR_lifesize_name3= (?i)lifesize_cdr: INFO \d+,\d+(,.*?){47},(?P<lsCDR_lifesize_name3>)

can you make this ?

Tags (1)
0 Karma
1 Solution

Masa
Splunk Employee
Splunk Employee

How about this?

EXTRACT-lsCDR_lifesize_name = lifesize_cdr:\s+INFO\s+.+,(?<lscdr_lifesize_name>[\w\.\-]+)$

View solution in original post

Masa
Splunk Employee
Splunk Employee

How about this?

EXTRACT-lsCDR_lifesize_name = lifesize_cdr:\s+INFO\s+.+,(?<lscdr_lifesize_name>[\w\.\-]+)$

Masa
Splunk Employee
Splunk Employee

Thanks, Ayn!

0 Karma

kml_uvce
Builder

Thanks Its working now...

0 Karma

Ayn
Legend

I fixed the formatting so that backslash characters weren't improperly interpreted. Does the regex work better now?

0 Karma

kml_uvce
Builder

Still This is not working with this reg ex as above

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...