<?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: Search in logs if value appeared  before in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-in-logs-if-value-appeared-before/m-p/635096#M220647</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thanks. What I need is to search within logs last 24 hrs and check if sender which appeared in such logs appared before within last 30 days (but without the latest 5 days)&lt;BR /&gt;&lt;BR /&gt;index=* sourcetype=maillogs&lt;BR /&gt;| eventstats count by sender&lt;BR /&gt;| where count &amp;gt; 1&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;| rest of my SPL&lt;BR /&gt;&lt;BR /&gt;Where to put earliest=-30d@d latest=-5d@d ?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 08:41:20 GMT</pubDate>
    <dc:creator>suspense</dc:creator>
    <dc:date>2023-03-20T08:41:20Z</dc:date>
    <item>
      <title>Search in logs if value appeared  before?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-logs-if-value-appeared-before/m-p/635093#M220644</link>
      <description>&lt;P&gt;Hello, Good Day!&lt;BR /&gt;&lt;BR /&gt;I have mail logs and I need to check if sender appeared before in last 30 days.&lt;BR /&gt;&lt;BR /&gt;I have issues with write SPL with join or subsearch.&lt;/P&gt;
&lt;P&gt;index=* sourcetype=maillogs&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;field that I want to compare is sender. If sender appeared in last 30 mails, then I have match and I should see those events in stats or table.&lt;BR /&gt;I tried subsearch but after all attempts I ended with nothing. Could you please help me?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 17:57:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-logs-if-value-appeared-before/m-p/635093#M220644</guid>
      <dc:creator>suspense</dc:creator>
      <dc:date>2023-03-20T17:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Search in logs if value appeared  before</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-logs-if-value-appeared-before/m-p/635095#M220646</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eventstats count by sender
| where count &amp;gt; 1&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Mar 2023 08:36:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-logs-if-value-appeared-before/m-p/635095#M220646</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-20T08:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Search in logs if value appeared  before</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-logs-if-value-appeared-before/m-p/635096#M220647</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks. What I need is to search within logs last 24 hrs and check if sender which appeared in such logs appared before within last 30 days (but without the latest 5 days)&lt;BR /&gt;&lt;BR /&gt;index=* sourcetype=maillogs&lt;BR /&gt;| eventstats count by sender&lt;BR /&gt;| where count &amp;gt; 1&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;| rest of my SPL&lt;BR /&gt;&lt;BR /&gt;Where to put earliest=-30d@d latest=-5d@d ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 08:41:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-logs-if-value-appeared-before/m-p/635096#M220647</guid>
      <dc:creator>suspense</dc:creator>
      <dc:date>2023-03-20T08:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search in logs if value appeared  before</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-logs-if-value-appeared-before/m-p/635099#M220649</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* sourcetype=maillogs (earliest=-30d@d latest=-5d@d) OR (earliest=-24h)
| eventstats earliest(_time) as earliest_time latest(_time) as latest_time by sender
| where earliest_time &amp;lt; relative_time(now(),"-24h") AND latest_time &amp;gt;= relative_time(now(),"-24h")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Mar 2023 09:06:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-logs-if-value-appeared-before/m-p/635099#M220649</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-20T09:06:45Z</dc:date>
    </item>
  </channel>
</rss>

