<?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: Equivalent timechart correlation query without subsearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Equivalent-timechart-correlation-query-without-subsearch/m-p/741381#M240608</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308398"&gt;@dzhangw7&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;why are you using a subsearch?&lt;/P&gt;&lt;P&gt;you can put all the conditions in the main search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index "Check something" (("Extracted entities" AND "'date': None") OR extracted_entities.date=null)
| timechart count by classification&lt;/LI-CODE&gt;&lt;P&gt;eventually adding a condition on identity_id&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index "Check something" (("Extracted entities" AND "'date': None") OR extracted_entities.date=null) identity_id=*
| timechart count by classification&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2025 07:49:48 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2025-03-11T07:49:48Z</dc:date>
    <item>
      <title>Equivalent timechart correlation query without subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Equivalent-timechart-correlation-query-without-subsearch/m-p/741363#M240604</link>
      <description>&lt;P&gt;Can someone help create an equivalent query to the following, without using subsearch? There are probably too many results and the query does not complete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=my_index&amp;nbsp;&lt;BR /&gt;[search index=my_index ("Extracted entities" AND "'date': None") OR extracted_entities.date=null | stats count by entity_id | fields entity_id | format]&lt;BR /&gt;"Check something" | timechart count by classification&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I want to extract the list of entity_ids from this search:&amp;nbsp;[search index=my_index ("Extracted entities" AND "'date': None") OR extracted_entities.date=null] where dates are null and then use those IDs to correlate in a second search&amp;nbsp;"Check something" which has a field "classification", and then I want to do a timechart on the result to see a line graph of events where a date was missing from an event, plus with a given classification.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 04:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Equivalent-timechart-correlation-query-without-subsearch/m-p/741363#M240604</guid>
      <dc:creator>dzhangw7</dc:creator>
      <dc:date>2025-03-11T04:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Equivalent timechart correlation query without subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Equivalent-timechart-correlation-query-without-subsearch/m-p/741381#M240608</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308398"&gt;@dzhangw7&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;why are you using a subsearch?&lt;/P&gt;&lt;P&gt;you can put all the conditions in the main search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index "Check something" (("Extracted entities" AND "'date': None") OR extracted_entities.date=null)
| timechart count by classification&lt;/LI-CODE&gt;&lt;P&gt;eventually adding a condition on identity_id&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index "Check something" (("Extracted entities" AND "'date': None") OR extracted_entities.date=null) identity_id=*
| timechart count by classification&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 07:49:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Equivalent-timechart-correlation-query-without-subsearch/m-p/741381#M240608</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-03-11T07:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Equivalent timechart correlation query without subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Equivalent-timechart-correlation-query-without-subsearch/m-p/741391#M240610</link>
      <description>&lt;P&gt;As &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; already pointed out - if your subsearch reaches to the same index as the outer search, it's pointless to do it this way. Limiting the base search is enough.&lt;/P&gt;&lt;P&gt;But if you want to correlate events from two different indexes, you'd need to search from both indexes at the same time (join conditions with OR) and then do some stats by common field.&lt;/P&gt;&lt;P&gt;Anyway,&lt;/P&gt;&lt;PRE&gt;| stats count by entity_id | fields entity_id&lt;/PRE&gt;&lt;P&gt;doesn't make much sense. It's enough to do&lt;/P&gt;&lt;PRE&gt;| stats values(entity_id) as entity_id&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 09:16:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Equivalent-timechart-correlation-query-without-subsearch/m-p/741391#M240610</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-11T09:16:16Z</dc:date>
    </item>
  </channel>
</rss>

