<?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: Creating a lookup from comma separated data... in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-lookup-from-comma-separated-data/m-p/199293#M57697</link>
    <description>&lt;P&gt;I am assuming the sample event your posted is already indexed and when searched, you are able to get fields asset_group_title and scanips. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;query to select your event | fields asset_group_title, scanips | rename asset_group_title as asset_group, scanips as ip | eval ip=split(ip,",") | mvexpand ip | outputlookup yourlookupfilename
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:37:37 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2020-09-28T15:37:37Z</dc:date>
    <item>
      <title>Creating a lookup from comma separated data...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-lookup-from-comma-separated-data/m-p/199292#M57696</link>
      <description>&lt;P&gt;I'm trying to do some work with qualys data. There are events that describe "asset groups", with a bunch of fields, one of which is "scanips", which is a comma separated list of IP addresses. something like:&lt;/P&gt;

&lt;P&gt;asset_group_id=1376498 asset_group_title="San Francisco Assets" scanips=10.10.1.2,10.10.1.3,10.10.5.2&lt;/P&gt;

&lt;P&gt;I'd like to process that data and use outputlookup to create a lookup table that would be something like&lt;/P&gt;

&lt;P&gt;ip,asset_group&lt;BR /&gt;&lt;BR /&gt;
10.10.1.2,San Francisco Assets&lt;BR /&gt;&lt;BR /&gt;
10.10.1.3,San Francisco Assets&lt;BR /&gt;&lt;BR /&gt;
10.10.5.2,San Francisco Assets&lt;/P&gt;

&lt;P&gt;I'd like to do this all within splunk, but can't figure out how. Any thoughts?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Steve&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:37:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-lookup-from-comma-separated-data/m-p/199292#M57696</guid>
      <dc:creator>Steve_Litras</dc:creator>
      <dc:date>2020-09-28T15:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a lookup from comma separated data...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-lookup-from-comma-separated-data/m-p/199293#M57697</link>
      <description>&lt;P&gt;I am assuming the sample event your posted is already indexed and when searched, you are able to get fields asset_group_title and scanips. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;query to select your event | fields asset_group_title, scanips | rename asset_group_title as asset_group, scanips as ip | eval ip=split(ip,",") | mvexpand ip | outputlookup yourlookupfilename
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-lookup-from-comma-separated-data/m-p/199293#M57697</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T15:37:37Z</dc:date>
    </item>
  </channel>
</rss>

