<?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: Extract values from a multivalue-field in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Extract-values-from-a-multivalue-field/m-p/323425#M4577</link>
    <description>&lt;P&gt;I just tried it with double quotes but it works with single ones.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2017 13:17:23 GMT</pubDate>
    <dc:creator>shoermann</dc:creator>
    <dc:date>2017-02-23T13:17:23Z</dc:date>
    <item>
      <title>Extract values from a multivalue-field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Extract-values-from-a-multivalue-field/m-p/323423#M4575</link>
      <description>&lt;P&gt;I have a multi-value field that contains IP-Adr and MAC-Adr and want to seprate them into single value fields. Sounds easy but the name of the field is 'host.address{@addr}', because of the xml-parsing.&lt;/P&gt;

&lt;P&gt;Something like the following doesn't work because of "Error in 'eval' command: The expression is malformed. Expected ).":&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index=network_nmap host.address{@addr}=*&lt;BR /&gt;
    | eval test=mvindex(host.address{@addr},0)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;What's my way out? Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 08:12:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Extract-values-from-a-multivalue-field/m-p/323423#M4575</guid>
      <dc:creator>shoermann</dc:creator>
      <dc:date>2017-02-23T08:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extract values from a multivalue-field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Extract-values-from-a-multivalue-field/m-p/323424#M4576</link>
      <description>&lt;P&gt;Have you tried wrapping the field name in single or double quotes.&lt;/P&gt;

&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`| eval test=mvindex("host.address{@addr}",0)`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`| eval test=mvindex('host.address{@addr}',0)`
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Feb 2017 12:37:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Extract-values-from-a-multivalue-field/m-p/323424#M4576</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-02-23T12:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract values from a multivalue-field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Extract-values-from-a-multivalue-field/m-p/323425#M4577</link>
      <description>&lt;P&gt;I just tried it with double quotes but it works with single ones.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 13:17:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Extract-values-from-a-multivalue-field/m-p/323425#M4577</guid>
      <dc:creator>shoermann</dc:creator>
      <dc:date>2017-02-23T13:17:23Z</dc:date>
    </item>
  </channel>
</rss>

