<?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: Problems with extracting fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Problems-with-extracting-fields/m-p/121789#M32797</link>
    <description>&lt;P&gt;your answer works miles better than my tweak, I've marked this as answered, thank you&lt;/P&gt;</description>
    <pubDate>Mon, 07 Apr 2014 12:15:13 GMT</pubDate>
    <dc:creator>SplunkUser5888</dc:creator>
    <dc:date>2014-04-07T12:15:13Z</dc:date>
    <item>
      <title>Problems with extracting fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problems-with-extracting-fields/m-p/121787#M32795</link>
      <description>&lt;P&gt;Hey guys, &lt;/P&gt;

&lt;P&gt;I'm trying to use regular expressions but can't get my head around it. I'm receiving lines such as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;u'C:\\Users\\User\\Downloads\\pyClamd-0.3.4\\SplunkClam\\Virus_txt\\Virus': ('FOUND', 'Eicar-Test-Signature')

u'C:\\Users\\User\\Downloads\\pyClamd-0.3.4\\SplunkClam\\Virus_zip_pass\\Virus.zip': ('FOUND', 'Heuristics.Encrypted.Zip')

u'C:\\Users\\User\\Downloads\\pyClamd-0.3.4\\SplunkClam\\Virus_txt\\Virus': ('FOUND', 'Eicar-Test-Signature') 

u'C:\\Users\\User\\Downloads\\pyClamd-0.3.4\\SplunkClam\\pyclamd.pyc': ('FOUND', 'Eicar-Test-Signature-1') 

u'C:\\Users\\User\\Downloads\\pyClamd-0.3.4\\SplunkClam\\Virus_zip_pass\\Virus.zip': ('FOUND', 'Heuristics.Encrypted.Zip')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and would like to extract the destination and the ('FOUND' 'VIRUS_NAME') fields separately to create an app. Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2014 10:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problems-with-extracting-fields/m-p/121787#M32795</guid>
      <dc:creator>SplunkUser5888</dc:creator>
      <dc:date>2014-04-07T10:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with extracting fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problems-with-extracting-fields/m-p/121788#M32796</link>
      <description>&lt;P&gt;Hi SplunkUser5888,&lt;/P&gt;

&lt;P&gt;somehting like this should get you started:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YourBaseSearchHere | rex field="_raw" "'(?&amp;lt;myDest&amp;gt;.+)'\:\s\('(?&amp;lt;myFound&amp;gt;.+)'\,\s'(?&amp;lt;myVirus&amp;gt;.+)'" | table myDest, myFound, myVirus
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this will create a table of three fields for you:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;myDest=C:\\Users\\User\\Downloads\\pyClamd-0.3.4\\SplunkClam\\Virus_zip_pass\\Virus.zip&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;myFound=FOUND&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;myVirus=Eicar-Test-Signature-1&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2014 11:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problems-with-extracting-fields/m-p/121788#M32796</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-07T11:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with extracting fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problems-with-extracting-fields/m-p/121789#M32797</link>
      <description>&lt;P&gt;your answer works miles better than my tweak, I've marked this as answered, thank you&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2014 12:15:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problems-with-extracting-fields/m-p/121789#M32797</guid>
      <dc:creator>SplunkUser5888</dc:creator>
      <dc:date>2014-04-07T12:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with extracting fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problems-with-extracting-fields/m-p/121790#M32798</link>
      <description>&lt;P&gt;thx and you're welcome&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2014 12:17:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problems-with-extracting-fields/m-p/121790#M32798</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-07T12:17:07Z</dc:date>
    </item>
  </channel>
</rss>

