<?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 How to extract the values from array? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-the-values-from-array/m-p/448422#M6393</link>
    <description>&lt;P&gt;I have a field that his elements looks the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;["bedep","banjori","gameover","dyre","suppobox","necurs","unknown","conficker","kraken","emotet","mirai","virut","ccleaner"]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I only extract the names of the threats with "" from the array on a different field?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 14:09:51 GMT</pubDate>
    <dc:creator>mcohen13</dc:creator>
    <dc:date>2019-03-18T14:09:51Z</dc:date>
    <item>
      <title>How to extract the values from array?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-the-values-from-array/m-p/448422#M6393</link>
      <description>&lt;P&gt;I have a field that his elements looks the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;["bedep","banjori","gameover","dyre","suppobox","necurs","unknown","conficker","kraken","emotet","mirai","virut","ccleaner"]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I only extract the names of the threats with "" from the array on a different field?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 14:09:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-the-values-from-array/m-p/448422#M6393</guid>
      <dc:creator>mcohen13</dc:creator>
      <dc:date>2019-03-18T14:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the values from array?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-the-values-from-array/m-p/448423#M6394</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval name="[\"bedep\",\"banjori\",\"gameover\",\"dyre\",\"suppobox\",\"necurs\",\"unknown\",\"conficker\",\"kraken\",\"emotet\",\"mirai\",\"virut\",\"ccleaner\"]" 
| eval result = replace(name, "\[|\]|\"","") 
| makemv delim="," result
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Mar 2019 14:23:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-the-values-from-array/m-p/448423#M6394</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-03-18T14:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the values from array?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-the-values-from-array/m-p/448424#M6395</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval name="[\"bedep\",\"banjori\",\"gameover\",\"dyre\",\"suppobox\",\"necurs\",\"unknown\",\"conficker\",\"kraken\",\"emotet\",\"mirai\",\"virut\",\"ccleaner\"]"
| eval new_name = name
| rex field=new_name mode=sed "s/[\[\]]//g"
| makemv delim="," new_name
| rex field=new_name mode=sed "s/\"//g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Mar 2019 15:51:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-the-values-from-array/m-p/448424#M6395</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-03-18T15:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the values from array?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-the-values-from-array/m-p/448425#M6396</link>
      <description>&lt;P&gt;By using split:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
 | eval name="[\"bedep\",\"banjori\",\"gameover\",\"dyre\",\"suppobox\",\"necurs\",\"unknown\",\"conficker\",\"kraken\",\"emotet\",\"mirai\",\"virut\",\"ccleaner\"]"
 | eval new_name = name
 | rex field=new_name mode=sed "s/\[|\]|\"//g"
 | eval new_name = split(new_name,",")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Mar 2019 06:49:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-the-values-from-array/m-p/448425#M6396</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-03-19T06:49:21Z</dc:date>
    </item>
  </channel>
</rss>

