<?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: field extraction for the complex data in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/field-extraction-for-the-complex-data/m-p/569679#M941</link>
    <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;statement_text=\"&lt;/FONT&gt;(?&amp;lt;&lt;FONT color="#FF6600"&gt;statement_text&lt;/FONT&gt;&amp;gt;&lt;FONT color="#339966"&gt;.*&lt;/FONT&gt;)&lt;FONT color="#0000FF"&gt;\",\s+cnt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;pre-anchor &lt;FONT color="#FF0000"&gt;fieldname&amp;nbsp;&lt;FONT color="#339966"&gt;pattern &lt;FONT color="#0000FF"&gt;post-anchor&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;That is, &lt;FONT color="#339966"&gt;everything (.*)&lt;/FONT&gt; between &lt;FONT color="#0000FF"&gt;statement_text="&lt;/FONT&gt; and &lt;FONT color="#0000FF"&gt;", cnt&lt;FONT color="#000000"&gt; is put into field named &lt;FONT color="#FF0000"&gt;statement_text&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 12:02:29 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-10-05T12:02:29Z</dc:date>
    <item>
      <title>field extraction for the complex data</title>
      <link>https://community.splunk.com/t5/Other-Usage/field-extraction-for-the-complex-data/m-p/569585#M937</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;Could someone help me with the field extraction for the below complex data(1000 lines of data I concised to 10 lines of data ) :&lt;/P&gt;&lt;P&gt;columns to be extracted are&amp;nbsp;statement_text , cnt, total_reads, total_writes,&amp;nbsp;db_name&lt;/P&gt;&lt;P&gt;statement_text="SELECT ISNULL("Interface Entry Header"."timestamp",@3) AS "timestamp",ISNULL("Interface Entry Header"."ImageURL",@8) AS "ImageURL",ISNULL("Interface Entry Header"."Pick Date Time",@7) AS "Pick Date Time",ISNULL("Interface Entry Header"."Start Execution",@7) AS "Start Execution",ISNULL("Interface Entry Header"."End Execution",@7) AS "End Execution",ISNULL("Interface Entry Header"."Send Request",@7) AS "Send Request",ISNULL("Maximo Issue Type$Interface Entry Line"."Header Entry No_",@4) AS "Maximo Issue Type$Interface Entry Line$Header Entry No_",ISNULL("Maximo Issue Type$Interface Entry Line"."Entry No_",@4) AS "Maximo Issue Type$Interface Entry Line$Entry No_" FROM "Algeria".dbo."Tango$Interface Entry Line" AS "Maximo Issue Type$Interface Entry Line" WITH(READUNCOMMITTED) WHERE ("Maximo Issue Type$Interface Entry Line"."Header Entry No_"="Interface Entry Header"."Entry No_") ORDER BY "Maximo Issue Type$Interface Entry Line$Header Entry No_" ASC,"Maximo Issue Type$Interface Entry Line$Entry No_" ASC) AS "SUB$Maximo Issue Type" WHERE ("Interface Entry Header"."Interface Code"=@0 AND "Interface Entry Header"."Direction"=@1 AND "Interface Entry Header"."Status"=@2) ORDER BY "Source No_" ASC,"Entry No_" ASC OPTION(OPTIMIZE FOR UNKNOWN, FAST 50)",&amp;nbsp; &amp;nbsp; cnt="12",&amp;nbsp; &amp;nbsp;&amp;nbsp;total_reads="31",&lt;BR /&gt;total_writes="0",&amp;nbsp; &amp;nbsp;db_name="test"&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't able to extract the statement_text column completely and the remaining columns are working fine&lt;/P&gt;&lt;P&gt;index="index" source="source1"| rex field=_raw "statement_text\=\"(?&amp;lt;statement_text&amp;gt;[@ ( ) $ . , \"A-Z ! ^ | \" - _ : { } A-Z a-z _ 0-9]+]+)\""&amp;nbsp;&amp;nbsp; | rex field=_raw "cnt\=\"(?&amp;lt;cnt&amp;gt;[0-9]+)\"" | rex field=_raw "diff_reads\=\"(?&amp;lt;diff_reads&amp;gt;[0-9]+)\""| rex field=_raw "total_writes\=\"(?&amp;lt;total_writes&amp;gt;[0-9]+)\""&amp;nbsp;| rex field=_raw "db_name\=\"(?&amp;lt;db_name&amp;gt;[A-Z a-z _ 0-9]+)\""&lt;/P&gt;&lt;P&gt;Please provide me rex for statement_text column where the data can be extracted till the 2nd column "cnt"&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 17:32:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/field-extraction-for-the-complex-data/m-p/569585#M937</guid>
      <dc:creator>Supriya</dc:creator>
      <dc:date>2021-10-04T17:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction for the complex data</title>
      <link>https://community.splunk.com/t5/Other-Usage/field-extraction-for-the-complex-data/m-p/569593#M939</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "statement_text=\"(?&amp;lt;statement_text&amp;gt;.*)\",\s+cnt"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Oct 2021 18:41:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/field-extraction-for-the-complex-data/m-p/569593#M939</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-04T18:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction for the complex data</title>
      <link>https://community.splunk.com/t5/Other-Usage/field-extraction-for-the-complex-data/m-p/569673#M940</link>
      <description>&lt;P&gt;Its working thank you!&amp;nbsp;&lt;BR /&gt;could you please explain&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 11:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/field-extraction-for-the-complex-data/m-p/569673#M940</guid>
      <dc:creator>Supriya</dc:creator>
      <dc:date>2021-10-05T11:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction for the complex data</title>
      <link>https://community.splunk.com/t5/Other-Usage/field-extraction-for-the-complex-data/m-p/569679#M941</link>
      <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;statement_text=\"&lt;/FONT&gt;(?&amp;lt;&lt;FONT color="#FF6600"&gt;statement_text&lt;/FONT&gt;&amp;gt;&lt;FONT color="#339966"&gt;.*&lt;/FONT&gt;)&lt;FONT color="#0000FF"&gt;\",\s+cnt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;pre-anchor &lt;FONT color="#FF0000"&gt;fieldname&amp;nbsp;&lt;FONT color="#339966"&gt;pattern &lt;FONT color="#0000FF"&gt;post-anchor&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;That is, &lt;FONT color="#339966"&gt;everything (.*)&lt;/FONT&gt; between &lt;FONT color="#0000FF"&gt;statement_text="&lt;/FONT&gt; and &lt;FONT color="#0000FF"&gt;", cnt&lt;FONT color="#000000"&gt; is put into field named &lt;FONT color="#FF0000"&gt;statement_text&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 12:02:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/field-extraction-for-the-complex-data/m-p/569679#M941</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-05T12:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction for the complex data</title>
      <link>https://community.splunk.com/t5/Other-Usage/field-extraction-for-the-complex-data/m-p/569702#M942</link>
      <description>&lt;P&gt;thank you for explaining and accepted your solution&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here one more issue I have is while downloading these results in CSV file, the column statement_text is splitting in different rows. could you help me with this issue&amp;nbsp;&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168" target="_blank"&gt;@ITWhisperer&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 16:33:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/field-extraction-for-the-complex-data/m-p/569702#M942</guid>
      <dc:creator>Supriya</dc:creator>
      <dc:date>2021-10-05T16:33:12Z</dc:date>
    </item>
  </channel>
</rss>

