Dashboards & Visualizations

Not able to close and in advaned XML when rex is used in search

kavyatim
Path Finder


source="base_bds_adsl.csv" | table cd_enc
,N_BD, DDD,NUMERO_TERMINAL | eval FR=cd_enc
| eval str=substr(FR,2) |eval str1=substr(str,5)| eval str2=substr(str,1,len(str)-2)| eval str3=str2+str1
| table N_BD,str,str1,str2,str3,DDD,NUMERO_TERMINAL| rename str3 as "code"
| join code[search source="code_ENC_Modem_Translated.csv" Description!="DO" Description="$descr$"]
|table N_BD, code ,Description,DDD,NUMERO_TERMINAL | eval cid = DDD.NUMERO_TERMINAL |table cid,Description | rename cid as line_id
| join line_id [search source="Base_CPE_x_Customer_Number -Customer ID CNL+Terminal Number to Vendor Name mappings.csv"
| rex "((?.*))"] | table line_id,VendorID_FIELD4,Description | stats count(line_id) as "Number Of Faults" by VendorID_FIELD4
| rename VendorID_FIELD4 as "Vendor Name"

appears in red and in rex appears green color.

Getting Unbalanced Quotes error while saving view.

Kindly help me out soon. ..

Thanking

Tags (1)
0 Karma

adityapavan18
Contributor

Please put the the whole query in CDATA.
Hope that solves the problem

MuS
Legend

Hi Kavyatim,

you have to use the &lt; & &gt; instead of < & > inside of your regex, else Splunk will use them as XML tag.

hope this helps ...

cheers, MuS

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...