<?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: Create field from small subset of events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-field-from-small-subset-of-events/m-p/395716#M170949</link>
    <description>&lt;P&gt;Yeah, thats because of the subsearch. If you want to accelerate the results then the best approach would be to store your mobile hosts in a lookup file and use that instead &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2019 14:01:53 GMT</pubDate>
    <dc:creator>DavidHourani</dc:creator>
    <dc:date>2019-05-31T14:01:53Z</dc:date>
    <item>
      <title>Create field from small subset of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-field-from-small-subset-of-events/m-p/395713#M170946</link>
      <description>&lt;P&gt;I have a field for device types (desktop or mobile) and a field for the hostname. Only a small number of events contain the device type field but all contain the host field. I need to create a field that contains all mobile hosts, but return all events related to them and not just the ones that contain the device type field. I have managed to get a list of all mobile hosts, but I don't know how to put them all into a field that is independent of the existence of the device class field.&lt;BR /&gt;
To get a list of mobile hosts I use this search:  (device_class=mobile | dedup host | stats values(host))&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 09:30:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-field-from-small-subset-of-events/m-p/395713#M170946</guid>
      <dc:creator>splunklearner12</dc:creator>
      <dc:date>2019-05-31T09:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create field from small subset of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-field-from-small-subset-of-events/m-p/395714#M170947</link>
      <description>&lt;P&gt;Hi @splunklearner1234,&lt;/P&gt;

&lt;P&gt;This will filter on the hosts that are part of the device_class mobile and return all events :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=whereYourDataIs [search device_class=mobile |dedup host |return 100 host ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if that works out for you.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 11:37:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-field-from-small-subset-of-events/m-p/395714#M170947</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-31T11:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create field from small subset of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-field-from-small-subset-of-events/m-p/395715#M170948</link>
      <description>&lt;P&gt;Thanks it works, although it is pretty slow.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 13:27:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-field-from-small-subset-of-events/m-p/395715#M170948</guid>
      <dc:creator>splunklearner12</dc:creator>
      <dc:date>2019-05-31T13:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create field from small subset of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-field-from-small-subset-of-events/m-p/395716#M170949</link>
      <description>&lt;P&gt;Yeah, thats because of the subsearch. If you want to accelerate the results then the best approach would be to store your mobile hosts in a lookup file and use that instead &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 14:01:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-field-from-small-subset-of-events/m-p/395716#M170949</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-31T14:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create field from small subset of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-field-from-small-subset-of-events/m-p/395717#M170950</link>
      <description>&lt;P&gt;Ahh that's it. I've managed to create a lookup which is faster - thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 14:56:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-field-from-small-subset-of-events/m-p/395717#M170950</guid>
      <dc:creator>splunklearner12</dc:creator>
      <dc:date>2019-05-31T14:56:27Z</dc:date>
    </item>
  </channel>
</rss>

