<?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 Field extraction with duplicate values in fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-with-duplicate-values-in-fields/m-p/11507#M790</link>
    <description>&lt;P&gt;Splunk 4.0.10&lt;/P&gt;

&lt;P&gt;I have a log file that has 5 fields, date, time, account, received, authorized. It looks like this:&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 washington-i 0 13&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 jefferson-i 13 13&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 jackson-i 13 13&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 madison-i 13 13&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 polk-i 13 13&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 lincoln 12 12&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 carter 0 4&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 reagan 7 7&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 johnson-I 12 12&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 eisenhauer 7 7&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 jefferson-1 13 13&lt;/P&gt;

&lt;P&gt;When I do a search and click on extract fields I can't get Splunk to recognize every &lt;STRONG&gt;received&lt;/STRONG&gt; field and it refuses to see the &lt;STRONG&gt;authorized&lt;/STRONG&gt; field. I need to be able to generate a report that will display the difference between these two fields. How do I get Splunk to extract these fields?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2010 00:22:31 GMT</pubDate>
    <dc:creator>kmattern</dc:creator>
    <dc:date>2010-04-15T00:22:31Z</dc:date>
    <item>
      <title>Field extraction with duplicate values in fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-with-duplicate-values-in-fields/m-p/11507#M790</link>
      <description>&lt;P&gt;Splunk 4.0.10&lt;/P&gt;

&lt;P&gt;I have a log file that has 5 fields, date, time, account, received, authorized. It looks like this:&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 washington-i 0 13&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 jefferson-i 13 13&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 jackson-i 13 13&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 madison-i 13 13&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 polk-i 13 13&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 lincoln 12 12&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 carter 0 4&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 reagan 7 7&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 johnson-I 12 12&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 eisenhauer 7 7&lt;/P&gt;

&lt;P&gt;4/14/2010 11:25:08 jefferson-1 13 13&lt;/P&gt;

&lt;P&gt;When I do a search and click on extract fields I can't get Splunk to recognize every &lt;STRONG&gt;received&lt;/STRONG&gt; field and it refuses to see the &lt;STRONG&gt;authorized&lt;/STRONG&gt; field. I need to be able to generate a report that will display the difference between these two fields. How do I get Splunk to extract these fields?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 00:22:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-with-duplicate-values-in-fields/m-p/11507#M790</guid>
      <dc:creator>kmattern</dc:creator>
      <dc:date>2010-04-15T00:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction with duplicate values in fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-with-duplicate-values-in-fields/m-p/11508#M791</link>
      <description>&lt;P&gt;One option may be to do this via &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Admin/Transformsconf" rel="nofollow"&gt;transforms.conf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;To get started you could add or append these two files on your Splunk search instance.&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/system/local/props.conf&lt;BR /&gt;
[unknown-too_small]&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
REPORT-foo = RecAuthz&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/system/local/transforms.conf&lt;BR /&gt;
[RecAuthz]&lt;BR /&gt;
REGEX = ([0-9]+/[0-9]+/[0-9]+)\s([0-9|:]+)\s(\S+)\s(\d+)\s(\d+)&lt;BR /&gt;
FORMAT = date::$1 time::$2 account::$3 received::$4 authorized::$5&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;---&lt;BR /&gt;
Alternate transforms.conf (easier to read solution)&lt;BR /&gt;
[RecAuthz]&lt;BR /&gt;
DELIMS = " " &lt;BR /&gt;
FIELDS = "date", "time", "account", "received", "authorized" &lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 02:09:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-with-duplicate-values-in-fields/m-p/11508#M791</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2010-04-15T02:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction with duplicate values in fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-with-duplicate-values-in-fields/m-p/11509#M792</link>
      <description>&lt;P&gt;...assuming you're an admin on that instance.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 02:35:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-with-duplicate-values-in-fields/m-p/11509#M792</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2010-04-15T02:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction with duplicate values in fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-with-duplicate-values-in-fields/m-p/11510#M793</link>
      <description>&lt;P&gt;Thanks, that worked!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 02:51:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-with-duplicate-values-in-fields/m-p/11510#M793</guid>
      <dc:creator>kmattern</dc:creator>
      <dc:date>2010-04-15T02:51:15Z</dc:date>
    </item>
  </channel>
</rss>

