<?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: Dealing with Lists in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562705#M196072</link>
    <description>&lt;LI-CODE lang="markup"&gt;your first search
| rename device_ids as device_id
| append [your second search
  | rename device_field as device_id]
| stats values(*) as * by device_id&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 10 Aug 2021 07:03:44 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-08-10T07:03:44Z</dc:date>
    <item>
      <title>Dealing with Lists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562656#M196057</link>
      <description>&lt;P&gt;I have network logs that show various network device communication that are in an index in Splunk.&amp;nbsp; I have another index that has information about the devices that I need to report on.&amp;nbsp; But I'm having issues because the network logs are summarizing the network activity and showing all the devices with the same activity, as seen below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="richtate_0-1628535722543.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15476i0574CD49E136DF5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="richtate_0-1628535722543.png" alt="richtate_0-1628535722543.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I get the individual information about the devices and/or how can I enumerate the information above.&amp;nbsp; If I send to a table, the device_ids will be blank, even if there is only one device in the list.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 19:06:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562656#M196057</guid>
      <dc:creator>richtate</dc:creator>
      <dc:date>2021-08-09T19:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Lists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562686#M196064</link>
      <description>&lt;P&gt;Break the list up into separate events by using &lt;FONT face="courier new,courier"&gt;mvexpand device_ids&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 00:04:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562686#M196064</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-08-10T00:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Lists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562705#M196072</link>
      <description>&lt;LI-CODE lang="markup"&gt;your first search
| rename device_ids as device_id
| append [your second search
  | rename device_field as device_id]
| stats values(*) as * by device_id&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 Aug 2021 07:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562705#M196072</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-10T07:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Lists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562773#M196097</link>
      <description>&lt;P&gt;I attempted to use mxexpand but the same result on search was returned.&amp;nbsp; Only 1 event exactly as shown above.&amp;nbsp; How will this command create new events with the same data, only an individual device_id?&amp;nbsp; I tried using a table, but still nothing:&lt;/P&gt;&lt;P&gt;index="test" sourcetype="network"&amp;nbsp;&lt;BR /&gt;| mvexpand device_ids&lt;BR /&gt;| table device_ids description devices lastSeen score type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, I'm a n00b&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 16:31:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562773#M196097</guid>
      <dc:creator>richtate</dc:creator>
      <dc:date>2021-08-10T16:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Lists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562774#M196098</link>
      <description>&lt;P&gt;device_ids still come in as a list and doesn't expand to find the device from the second list.&amp;nbsp; What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 16:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562774#M196098</guid>
      <dc:creator>richtate</dc:creator>
      <dc:date>2021-08-10T16:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Lists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562775#M196099</link>
      <description>&lt;P&gt;Can you share the raw event rather than an image of the formatted event?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 16:38:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562775#M196099</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-10T16:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Lists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562786#M196100</link>
      <description>&lt;P&gt;The base index of assets is:&lt;/P&gt;&lt;P&gt;index=asset sourcetype=Network:Asset&lt;BR /&gt;| table id ipAddress macAddress name type tags&lt;/P&gt;&lt;P&gt;The index with network activity is:&lt;/P&gt;&lt;P&gt;index=test sourcetype=network | table description device_ids devices lastSeen score type&lt;/P&gt;&lt;P&gt;I'm trying to merge the data together with the asset information so I know what and where the activity is.&amp;nbsp; I'd like a table like this:&lt;/P&gt;&lt;P&gt;id ipAddress name description lastSeen score type macAddress tags&lt;/P&gt;&lt;P&gt;I could join the indexes to get what I'm looking for using device ids as you suggested.&amp;nbsp; But the issue I'm having is the second SPL with the list of ids in the device_ids field.&amp;nbsp; I don't know how to enumerate them to merge the asset index with the test index.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 17:50:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562786#M196100</guid>
      <dc:creator>richtate</dc:creator>
      <dc:date>2021-08-10T17:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Lists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562815#M196106</link>
      <description>&lt;P&gt;I can't see how we can help you without you sharing the events you are dealing with because we have suggested things based on our assumptions, which you say don't give you what you want, so our assumptions are probably incorrect. It is fine for you to not share, but I can't see how we can help you further in that case.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 22:09:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562815#M196106</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-10T22:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Lists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562823#M196108</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="richtate_0-1628635788154.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15497iE2C930CF72460827/image-size/medium?v=v2&amp;amp;px=400" role="button" title="richtate_0-1628635788154.png" alt="richtate_0-1628635788154.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the table output of the first SPL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 22:50:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562823#M196108</guid>
      <dc:creator>richtate</dc:creator>
      <dc:date>2021-08-10T22:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Lists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562825#M196109</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="richtate_0-1628636022752.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15498i04630B4DD44E520A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="richtate_0-1628636022752.png" alt="richtate_0-1628636022752.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the second SPL in table format, you can see the device_ids are blank but the affectedDevicesCount show there are over 1300 ids in the device_ids field.&amp;nbsp; That is why I posted the _raw unformated data to open because I could expand the list given for the device_ids field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 22:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562825#M196109</guid>
      <dc:creator>richtate</dc:creator>
      <dc:date>2021-08-10T22:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Lists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562858#M196115</link>
      <description>&lt;P&gt;It looks like the field is not being extracted. In order to help you extract it in the search, we need to see the raw data from the events. You haven't posted the raw event - rerun the search in verbose mode, click on the events tab, expand one (or more) of the event (if it has more lines to show) and copy the raw data from the event.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 07:05:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562858#M196115</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-11T07:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Lists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562954#M196145</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="richtate_0-1628695604982.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15534iCC6A8270FC4C11C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="richtate_0-1628695604982.png" alt="richtate_0-1628695604982.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sorry, I'm a n00b.&amp;nbsp; Here is the first event in the previous screenshot.&amp;nbsp; You can see the device_ids are returned, but not shown on the table.&amp;nbsp; I need to take each device_id and return an event for each id, that way I can join with the other index for network asset information.&amp;nbsp; As you can see now, I don't know what asset it transmitting the packets.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 15:29:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562954#M196145</guid>
      <dc:creator>richtate</dc:creator>
      <dc:date>2021-08-11T15:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Lists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562956#M196147</link>
      <description>&lt;LI-CODE lang="markup"&gt;| spath device_ids{} output=device_ids
| mvexpand device_ids&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Aug 2021 15:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562956#M196147</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-11T15:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Lists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562959#M196149</link>
      <description>&lt;P&gt;Thank you, that is exactly what I was looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 16:16:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-Lists/m-p/562959#M196149</guid>
      <dc:creator>richtate</dc:creator>
      <dc:date>2021-08-11T16:16:31Z</dc:date>
    </item>
  </channel>
</rss>

