<?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: Failing to extract to multivalue field with props.conf and transforms.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Failing-to-extract-to-multivalue-field-with-props-conf-and/m-p/384435#M112276</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;This may help :&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Knowledge/ConfigureSplunktoparsemulti-valuefields"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Knowledge/ConfigureSplunktoparsemulti-valuefields&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Try using fields.conf with TOKENIZER as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[answer_domain]
TOKENIZER = (ANSWER SECTION):\s+(?P&amp;lt;domain&amp;gt;[^#]+)

[answer_ip]
TOKENIZER = #01(?P&amp;lt;answer_ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 03 Jan 2019 03:59:44 GMT</pubDate>
    <dc:creator>p_gurav</dc:creator>
    <dc:date>2019-01-03T03:59:44Z</dc:date>
    <item>
      <title>Failing to extract to multivalue field with props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Failing-to-extract-to-multivalue-field-with-props-conf-and/m-p/384434#M112275</link>
      <description>&lt;P&gt;Im not sure why I am not extracting into multivalue fields. It's only extracting the last matching group. I think its my regex. In splunk the answer_rdata is not a mv field, but contains the last value from the ANSWER SECTION&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[pfsense:unbound]
REPORT-unbound-mvfields = unbound_answer_section
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[unbound_answer_section]
REGEX = (?:ANSWER\sSECTION:\s(?:(?&amp;lt;answer_name&amp;gt;\S+)#011(?&amp;lt;answer_ttl&amp;gt;\S+)#011(?&amp;lt;answer_class&amp;gt;\S+)#011(?&amp;lt;answer_type&amp;gt;\S+)#011(?&amp;lt;answer_rdata&amp;gt;\S+)\s)+\s\;\;)
MV_ADD=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Below is an example of the log entries. Id like to extract all the data in the ANSWERS SECTION into mv fields: answer_name, answer_ttl, answer_class, answer_type, and answer_rdata. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2019-01-02T17:34:19-05:00 10.10.30.1 unbound: [48511:0] info: incoming scrubbed packet: ;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, rcode: NOERROR, id: 0 ;; flags: qr rd ra ; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0  ;; QUESTION SECTION: gs-loc.ls-apple.com.akadns.net.#011IN#011A  ;; ANSWER SECTION: gs-loc.ls-apple.com.akadns.net.#01135#011IN#011A#01117.142.171.4 gs-loc.ls-apple.com.akadns.net.#01135#011IN#011A#01117.142.171.8 gs-loc.ls-apple.com.akadns.net.#01135#011IN#011A#01117.142.171.9  ;; AUTHORITY SECTION:  ;; ADDITIONAL SECTION: ;; MSG SIZE  rcvd: 96

2019-01-02T17:34:42-05:00 10.10.30.1 unbound: [48511:0] info: cname msg ;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, rcode: NOERROR, id: 0 ;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0  ;; QUESTION SECTION: init-p01md.apple.com.#011IN#011A  ;; ANSWER SECTION: init-p01md.apple.com.#0119665#011IN#011CNAME#011init-p01md-lb.push-apple.com.akadns.net.  ;; AUTHORITY SECTION:  ;; ADDITIONAL SECTION: ;; MSG SIZE  rcvd: 91

2019-01-02T18:52:01-05:00 10.10.30.1 unbound: [48511:0] info: msg from cache lookup ;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, rcode: NOERROR, id: 0 ;; flags: qr rd ra ; QUERY: 1, ANSWER: 0, AUTHORITY: 6, ADDITIONAL: 0  ;; QUESTION SECTION: amazonaws.com.#011IN#011DS  ;; ANSWER SECTION:  ;; AUTHORITY SECTION: xxxxxxxxxxxxxxxxxx.#01181254#011IN#011NSEC3#0111 1 0 - xxxxxxxxxxxxxxxxxxNS SOA RRSIG DNSKEY NSEC3PARAM ;{flags: optout} xxxxxxxxxxxxxxxxxx.com.#01181254#011IN#011RRSIG#011NSEC3 8 2 86400 20190107054258 20181231043258 37490 com. xxxxxxxxxxxxxxxxxx/2/xxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxx= ;{id = 37490} com.#011884#011IN#011SOA#011a.gtld-servers.net. nstld.verisign-grs.com. 1546473084 1800 900 604800 86400 com.#011884#011IN#011RRSIG#011SOA 8 1 900 20190109235124 20190102224124 37490 com. xxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxx
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Failing-to-extract-to-multivalue-field-with-props-conf-and/m-p/384434#M112275</guid>
      <dc:creator>nkleck</dc:creator>
      <dc:date>2020-09-29T22:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Failing to extract to multivalue field with props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Failing-to-extract-to-multivalue-field-with-props-conf-and/m-p/384435#M112276</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;This may help :&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Knowledge/ConfigureSplunktoparsemulti-valuefields"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Knowledge/ConfigureSplunktoparsemulti-valuefields&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Try using fields.conf with TOKENIZER as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[answer_domain]
TOKENIZER = (ANSWER SECTION):\s+(?P&amp;lt;domain&amp;gt;[^#]+)

[answer_ip]
TOKENIZER = #01(?P&amp;lt;answer_ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Jan 2019 03:59:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Failing-to-extract-to-multivalue-field-with-props-conf-and/m-p/384435#M112276</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2019-01-03T03:59:44Z</dc:date>
    </item>
  </channel>
</rss>

