<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Extracting through inconsistent data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-through-inconsistent-data/m-p/567248#M197666</link>
    <description>&lt;P&gt;It would help if you said how the tool (which tool?) is not living up to expectations.&lt;/P&gt;&lt;P&gt;Have you tried this regex?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(?:[^,]+,){3}(?&amp;lt;field1&amp;gt;[^,]+),(?:[^,]+,){9}"(?&amp;lt;field2&amp;gt;[^"]+)","(?&amp;lt;field3&amp;gt;[^"]+)","(?&amp;lt;field4&amp;gt;[^"]+)","(?&amp;lt;field5&amp;gt;[^"]+)",".*?","(?&amp;lt;field6&amp;gt;[^"]+)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 16 Sep 2021 12:02:55 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-09-16T12:02:55Z</dc:date>
    <item>
      <title>Extracting through inconsistent data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-through-inconsistent-data/m-p/567216#M197651</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have been trying to extract the values through an inconsistent data as below. Highlighted values needs to be extracted, however the default extrcation through the tool is not working as expected. Could you please help in this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;50271234,00004105,00000000,&lt;U&gt;&lt;STRONG&gt;1600&lt;/STRONG&gt;&lt;/U&gt;,"20210901225500","20210901225500",4,-1,-1,"SYSTEM","","psd217",46769359,"&lt;U&gt;&lt;STRONG&gt;MS932&lt;/STRONG&gt;&lt;/U&gt;","&lt;U&gt;&lt;STRONG&gt;KAVS0263-I \x83W\x83\x87\x83u(AJSROOT1:/\x90V\x8A_\x96{\x94ԏ\x88\x97\x9D/\x92l\x8ED\x94\xAD\x8Ds/04_\x92l\x8ED\x8Ew\x8E\xA6\x83f\x81[\x83^\x98A\x8Cg_\x8CߑO1TAX/V9B01_B:@5V689)\x82\xF0\x8AJ\x8En\x82\xB5\x82܂\xB7(host: UXC510, JOBID: 56620)&lt;/STRONG&gt;&lt;/U&gt;","&lt;U&gt;&lt;STRONG&gt;Information&lt;/STRONG&gt;&lt;/U&gt;","&lt;U&gt;&lt;STRONG&gt;jp1admin&lt;/STRONG&gt;&lt;/U&gt;","/Example/JP1/AJS2","&lt;U&gt;&lt;STRONG&gt;JOB&lt;/STRONG&gt;&lt;/U&gt;","AJSROOT1:/\x90V\x8A_\x96{\x94ԏ\x88\x97\x9D/\x92l\x8ED\x94\xAD\x8Ds/04_\x92l\x8ED\x8Ew\x8E\xA6\x83f\x81[\x83^\x98A\x8Cg_\x8CߑO1TAX/V9B01_B","JOBNET","AJSROOT1:/\x90V\x8A_\x96{\x94ԏ\x88\x97\x9D/\x92l\x8ED\x94\xAD\x8Ds/04_\x92l\x8ED\x8Ew\x8E\xA6\x83f\x81[\x83^\x98A\x8Cg_\x8CߑO1TAX","AJSROOT1:/\x90V\x8A_\x96{\x94ԏ\x88\x97\x9D/\x92l\x8ED\x94\xAD\x8Ds/04_\x92l\x8ED\x8Ew\x8E\xA6\x83f\x81[\x83^\x98A\x8Cg_\x8CߑO1TAX/V9B01_B","START","20210901225500","","",16,"A0","AJSROOT1:/\x90V\x8A_\x96{\x94ԏ\x88\x97\x9D/\x92l\x8ED\x94\xAD\x8Ds","A1","04_\x92l\x8ED\x8Ew\x8E\xA6\x83f\x81[\x83^\x98A\x8Cg_\x8CߑO1TAX","A2","V9B01_B","A3","@5V0689","ACTION_VERSION","0600","B0","n","B1","1","B2","jp1admin","B3","psd217","C0","UXC510","C1","","C6","r","H2","677758","H3","j","H4","q","PLATFORM","NT",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;50270531,00003A71,00000000,&lt;U&gt;&lt;STRONG&gt;3588&lt;/STRONG&gt;&lt;/U&gt;,"20210901224800","20210901224800",4,-1,-1,"SYSTEM","","PSC611",565029,"&lt;U&gt;&lt;STRONG&gt;MS932&lt;/STRONG&gt;&lt;/U&gt;","""&lt;U&gt;&lt;STRONG&gt;SE_LOG: User - GetStringS: Failed to LookupAccountName. Domain (\\SERVER-retailing.group), Name (SERVER\QVADMIN). System Error&lt;/STRONG&gt;&lt;/U&gt;""","&lt;U&gt;&lt;STRONG&gt;Error&lt;/STRONG&gt;&lt;/U&gt;","","/Example/JP1/NTEVENT_LOGTRAP/QlikViewServer","&lt;U&gt;&lt;STRONG&gt;LOGFILE&lt;/STRONG&gt;&lt;/U&gt;","NTEVENTLOG","LOGFILE","NTEVENTLOG","","","","","",9,"A0","1630504080","A1","PSC611.H2O-retailing.group","A2","Application","A3","Error","A4","None","A5","300","A6","N/A","PLATFORM","NT","PPNAME","/HITACHI/JP1/NTEVENT_LOGTRAP",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Highlighted fields are the ones I am trying to extract here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 07:14:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-through-inconsistent-data/m-p/567216#M197651</guid>
      <dc:creator>srinivas_gowda</dc:creator>
      <dc:date>2021-09-16T07:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting through inconsistent data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-through-inconsistent-data/m-p/567248#M197666</link>
      <description>&lt;P&gt;It would help if you said how the tool (which tool?) is not living up to expectations.&lt;/P&gt;&lt;P&gt;Have you tried this regex?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(?:[^,]+,){3}(?&amp;lt;field1&amp;gt;[^,]+),(?:[^,]+,){9}"(?&amp;lt;field2&amp;gt;[^"]+)","(?&amp;lt;field3&amp;gt;[^"]+)","(?&amp;lt;field4&amp;gt;[^"]+)","(?&amp;lt;field5&amp;gt;[^"]+)",".*?","(?&amp;lt;field6&amp;gt;[^"]+)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Sep 2021 12:02:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-through-inconsistent-data/m-p/567248#M197666</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-09-16T12:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting through inconsistent data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-through-inconsistent-data/m-p/567380#M197721</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried and I am getting the below error.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error in 'SearchParser': Missing a search command before '^'. Error at position '92' of search query 'search index=*jp1* | rex field=_raw "(?:[^,]+,){3}...{snipped} {errorcontext = ?&amp;lt;field2&amp;gt;[^"]+)","(?&amp;lt;}'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And when I use escape before the " like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;| rex field=_raw "(?:[^,]+,){3}(?&amp;lt;field1&amp;gt;[^,]+),(?:[^,]+,){9}\"(?&amp;lt;field2&amp;gt;[^"]+)\",\"(?&amp;lt;field3&amp;gt;[^"]+)\",\"(?&amp;lt;field4&amp;gt;[^"]+)\",\"(?&amp;lt;field5&amp;gt;[^"]+)\",\".*?\",\"(?&amp;lt;field6&amp;gt;[^"]+)"&lt;/P&gt;&lt;P&gt;Still the below error.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error in 'SearchParser': Mismatched ']'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 09:08:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-through-inconsistent-data/m-p/567380#M197721</guid>
      <dc:creator>srinivas_gowda</dc:creator>
      <dc:date>2021-09-17T09:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting through inconsistent data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-through-inconsistent-data/m-p/567454#M197756</link>
      <description>&lt;P&gt;Quotation marks embedded in the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command must be escaped with three backslashes.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 15:39:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-through-inconsistent-data/m-p/567454#M197756</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-09-17T15:39:50Z</dc:date>
    </item>
  </channel>
</rss>

