<?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: How to edit my configurations to extract a multivalue field from an extracted field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357156#M105651</link>
    <description>&lt;P&gt;Yes, otherwise they are process in alphabetical order and your order was wrong ( &lt;CODE&gt;c&lt;/CODE&gt; comes before &lt;CODE&gt;f&lt;/CODE&gt; ).&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2017 18:41:32 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-03-16T18:41:32Z</dc:date>
    <item>
      <title>How to edit my configurations to extract a multivalue field from an extracted field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357148#M105643</link>
      <description>&lt;P&gt;I am trying to extract fields for OpenDNS logs.&lt;BR /&gt;
These come in a CSV format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  "2015-01-01 20:39:57","client1","client1,site1","1.1.1.1","2.2.2.2","Allowed","1 (A)","NOERROR","www.google.com.","Search Engines"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The challenge here is that fields "identities" and "categories" are often multi-valued (also comma-separated).&lt;BR /&gt;
I went off the idea from here: &lt;A href="https://answers.splunk.com/answers/112311/multi-value-field-extraction.html"&gt;https://answers.splunk.com/answers/112311/multi-value-field-extraction.html&lt;/A&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Extract all the main fields&lt;/LI&gt;
&lt;LI&gt;Do a second transform to extract the multi-values&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;The first part works fine:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**props.conf:**
[opendns:dnslog]
REPORT-opendns-fields = opendns_aws_s3

**transforms.conf:**
[opendns_aws_s3]
DELIMS = ","
FIELDS = timestamp,granular_id,identities,internal_ip,external_ip,action,query_type,resp_code,domain,categories
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But now I have not split "identities" and "categories".&lt;BR /&gt;
So I added a second transform, to work on the categories field:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**props.conf:**
[opendns:dnslog]
REPORT-opendns-fields = opendns_aws_s3
REPORT-opendns-category = opendns_aws_s3_category

**transforms.conf:**
[opendns_aws_s3_category]
SOURCE_KEY=categories
DELIMS = ","
FIELDS = category
MV_ADD=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here I did something wrong, because this isn't working. I get no new field named "category", and the "categories" field is unchanged.&lt;BR /&gt;
Should I maybe not have added the FIELDS= entry?  This was to name the new field. But that was perhaps not a good idea?&lt;BR /&gt;
How else can I name this as a new field?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 16:17:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357148#M105643</guid>
      <dc:creator>reedmohn</dc:creator>
      <dc:date>2017-03-15T16:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my configurations to extract a multivalue field from an extracted field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357149#M105644</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[opendns:dnslog]
REPORT-opendns-fields = opendns_aws_s3, opendns_aws_s3_category
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[opendns_aws_s3]
DELIMS = ","
FIELDS = timestamp,granular_id,identities,internal_ip,external_ip,action,query_type,resp_code,domain,categories

[opendns_aws_s3_category]
SOURCE_KEY=categories
REGEX = ([^,]+)(?:,|$)
FORMAT = category::$1
MV_ADD=true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Mar 2017 16:38:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357149#M105644</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-15T16:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my configurations to extract a multivalue field from an extracted field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357150#M105645</link>
      <description>&lt;P&gt;is the "categories" split by   doublequotes-comma-doublequotes or just a comma? a more number of examples with multivalues would be great&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 17:04:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357150#M105645</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2017-03-15T17:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my configurations to extract a multivalue field from an extracted field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357151#M105646</link>
      <description>&lt;P&gt;It's just the comma. Only the original field is enclosed in quotes.&lt;/P&gt;

&lt;P&gt;Values vary a lot, some domains fit into 4-5 categories. Actual values may contain spaces and slashes.&lt;BR /&gt;
Could be stuff like:&lt;BR /&gt;
"Software/Technology,Business Services"   (2 categories)&lt;BR /&gt;
"Adult Themes,Nudity,Pornography,Sexuality" (4 categories)&lt;/P&gt;

&lt;P&gt;(disappointingly, that last one shows up frequently just because we have a monitor running to confirm the filter is in place...     sad, I know &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;  )&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 23:15:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357151#M105646</guid>
      <dc:creator>reedmohn</dc:creator>
      <dc:date>2017-03-15T23:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my configurations to extract a multivalue field from an extracted field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357152#M105647</link>
      <description>&lt;P&gt;Thanks, I'll run that.&lt;BR /&gt;
I expect regex will do the trick.&lt;BR /&gt;
I was kinda hoping that since Splunk has a built in mechanism for handling delimited values, that would be the obvious and most efficient choice.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 23:17:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357152#M105647</guid>
      <dc:creator>reedmohn</dc:creator>
      <dc:date>2017-03-15T23:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my configurations to extract a multivalue field from an extracted field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357153#M105648</link>
      <description>&lt;P&gt;Problem solved:  I found the answer in your post, but in a different part than you might've intended... &lt;BR /&gt;
I changed the props-conf stanza so that both transforms were on the same line.&lt;/P&gt;

&lt;P&gt;That did it!&lt;/P&gt;

&lt;P&gt;So, thanks for clearing up my syntax mistake &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 23:27:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357153#M105648</guid>
      <dc:creator>reedmohn</dc:creator>
      <dc:date>2017-03-15T23:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my configurations to extract a multivalue field from an extracted field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357154#M105649</link>
      <description>&lt;P&gt;This was solved by clearing up the props.conf stanza:&lt;/P&gt;

&lt;P&gt;This doesn't work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[opendns:dnslog]
REPORT-opendns-fields = opendns_aws_s3
REPORT-opendns-category = opendns_aws_s3_category
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[opendns:dnslog]
REPORT-opendns-fields = opendns_aws_s3, opendns_aws_s3_category 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks to woodcock for the right syntax.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 23:33:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357154#M105649</guid>
      <dc:creator>reedmohn</dc:creator>
      <dc:date>2017-03-15T23:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my configurations to extract a multivalue field from an extracted field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357155#M105650</link>
      <description>&lt;P&gt;Yes, otherwise they are process in alphabetical order and your order was wrong ( &lt;CODE&gt;c&lt;/CODE&gt; comes before &lt;CODE&gt;f&lt;/CODE&gt; ).&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 18:39:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357155#M105650</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-16T18:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my configurations to extract a multivalue field from an extracted field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357156#M105651</link>
      <description>&lt;P&gt;Yes, otherwise they are process in alphabetical order and your order was wrong ( &lt;CODE&gt;c&lt;/CODE&gt; comes before &lt;CODE&gt;f&lt;/CODE&gt; ).&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 18:41:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-configurations-to-extract-a-multivalue-field-from/m-p/357156#M105651</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-16T18:41:32Z</dc:date>
    </item>
  </channel>
</rss>

