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

Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...