<?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 use IN command with subsearch in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/use-IN-command-with-subsearch/m-p/530839#M9533</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;i want to use IN command with subsearch like in the query above:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats summariesonly=true allow_old_summaries=true max(_time) as _time, values("events.eventtype") as eventtype FROM datamodel=events_prod WHERE "events.kafka_uuid" IN ("search= [ | inputlookup kv_alerts_prod where _key="5f" | table uuids]") BY "events.kafka_uuid", "events.tail_id", "events._indextime", "events._raw", source, sourcetype&lt;/LI-CODE&gt;&lt;P&gt;this query returns no results.. what am i missing ?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 14:39:25 GMT</pubDate>
    <dc:creator>sarit_s</dc:creator>
    <dc:date>2020-11-25T14:39:25Z</dc:date>
    <item>
      <title>use IN command with subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/use-IN-command-with-subsearch/m-p/530839#M9533</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;i want to use IN command with subsearch like in the query above:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats summariesonly=true allow_old_summaries=true max(_time) as _time, values("events.eventtype") as eventtype FROM datamodel=events_prod WHERE "events.kafka_uuid" IN ("search= [ | inputlookup kv_alerts_prod where _key="5f" | table uuids]") BY "events.kafka_uuid", "events.tail_id", "events._indextime", "events._raw", source, sourcetype&lt;/LI-CODE&gt;&lt;P&gt;this query returns no results.. what am i missing ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 14:39:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/use-IN-command-with-subsearch/m-p/530839#M9533</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2020-11-25T14:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: use IN command with subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/use-IN-command-with-subsearch/m-p/530894#M9534</link>
      <description>&lt;P&gt;Check the search log to see how Splunk is parsing that query.&amp;nbsp; I suspect the contents of the IN argument is being treated literally instead of as a subsearch.&lt;/P&gt;&lt;P&gt;If the subsearch is being processed then it's possible it's not returning a valid argument for IN.&amp;nbsp; Run the subsearch by itself with &lt;FONT face="courier new,courier"&gt;| format&lt;/FONT&gt; on the end to see the exact string returned.&amp;nbsp; Adjust the subsearch as needed to make the returned value a valid IN argument.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 20:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/use-IN-command-with-subsearch/m-p/530894#M9534</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-25T20:55:24Z</dc:date>
    </item>
  </channel>
</rss>

