<?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 How to Identify a repeated set up messages [for looping process]? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658225#M227372</link>
    <description>&lt;P&gt;We have a job that occasionally loops around the same code spewing out same set of messages [2 different messages from same job] - is it possible to identify processes where the last 2 messages match the previous 2 messages...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;message1&lt;/P&gt;
&lt;P&gt;message2&lt;/P&gt;
&lt;P&gt;message1 &amp;lt;-- starts repeating/looping here&lt;/P&gt;
&lt;P&gt;message2&lt;/P&gt;
&lt;P&gt;message1&lt;/P&gt;
&lt;P&gt;message2&lt;/P&gt;
&lt;P&gt;message1&lt;/P&gt;
&lt;P&gt;message2&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;Any help appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mick&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2023 18:17:29 GMT</pubDate>
    <dc:creator>Mick_OBrien</dc:creator>
    <dc:date>2023-09-22T18:17:29Z</dc:date>
    <item>
      <title>How to Identify a repeated set up messages [for looping process]?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658225#M227372</link>
      <description>&lt;P&gt;We have a job that occasionally loops around the same code spewing out same set of messages [2 different messages from same job] - is it possible to identify processes where the last 2 messages match the previous 2 messages...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;message1&lt;/P&gt;
&lt;P&gt;message2&lt;/P&gt;
&lt;P&gt;message1 &amp;lt;-- starts repeating/looping here&lt;/P&gt;
&lt;P&gt;message2&lt;/P&gt;
&lt;P&gt;message1&lt;/P&gt;
&lt;P&gt;message2&lt;/P&gt;
&lt;P&gt;message1&lt;/P&gt;
&lt;P&gt;message2&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;Any help appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mick&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 18:17:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658225#M227372</guid>
      <dc:creator>Mick_OBrien</dc:creator>
      <dc:date>2023-09-22T18:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a repeated set up messages [for looping process]</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658232#M227373</link>
      <description>&lt;P&gt;It is possible but it depends on your messages.&lt;/P&gt;&lt;P&gt;Are the messages from the process unique apart from when they are repeated?&lt;/P&gt;&lt;P&gt;Can you correlate messages from the same instance of the process without confusing them with messages from another instance of the process?&lt;/P&gt;&lt;P&gt;Are the loops any bigger or smaller than two messages?&lt;/P&gt;&lt;P&gt;What do you need to be kept in the report, e.g. all messages, just the process id?, just the time of the first duplicated message, just the fact that a process has looped?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 07:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658232#M227373</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-09-21T07:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a repeated set up messages [for looping process]</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658236#M227375</link>
      <description>&lt;P&gt;The messages are valid but once starting to loop indicates issue with process - messages can be from different processes but I am only interested in messages repeating on same process.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 07:43:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658236#M227375</guid>
      <dc:creator>Mick_OBrien</dc:creator>
      <dc:date>2023-09-21T07:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a repeated set up messages [for looping process]</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658239#M227376</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eventstats count as repeats by process message
| where repeats &amp;gt; 1&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 21 Sep 2023 07:47:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658239#M227376</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-09-21T07:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a repeated set up messages [for looping process]</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658241#M227377</link>
      <description>&lt;P&gt;Sorry - but how does this pick up a set of messages on the same process repeating?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 07:55:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658241#M227377</guid>
      <dc:creator>Mick_OBrien</dc:creator>
      <dc:date>2023-09-21T07:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a repeated set up messages [for looping process]</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658244#M227379</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults format=csv data="process,message
A,message 0
B,message 0
A,message 1
B,message 1
A,message 2
B,message 2
A,message 1
B,message 3
A,message 2
A,message 1
A,message 2"
| eventstats count as repeats by process message
| where repeats &amp;gt; 1&lt;/LI-CODE&gt;&lt;P&gt;As you can see, only messages that are repeated are shown&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 08:11:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658244#M227379</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-09-21T08:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a repeated set of messages [for looping process]</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658439#M227439</link>
      <description>&lt;P&gt;I ran from search prompt bar but nothing was returned for result set - is there a specific way to use 'makeresults' syntax?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 16:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658439#M227439</guid>
      <dc:creator>Mick_OBrien</dc:creator>
      <dc:date>2023-09-22T16:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a repeated set of messages [for looping process]</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658452#M227440</link>
      <description>&lt;P&gt;Which version of Splunk are you using (the makeresults command changed in version 9).&lt;/P&gt;&lt;P&gt;The makeresults is only to create some example data to show you that the commands work.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 18:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658452#M227440</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-09-22T18:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a repeated set of messages [for looping process]</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658510#M227461</link>
      <description>&lt;H4&gt;Splunk Enterprise&lt;/H4&gt;&lt;P&gt;Version:8.2.7.1&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 16:05:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658510#M227461</guid>
      <dc:creator>Mick_OBrien</dc:creator>
      <dc:date>2023-09-24T16:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a repeated set of messages [for looping process]</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658512#M227462</link>
      <description>&lt;P&gt;See below - no output from search string...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="makeresults screenshot.PNG" style="width: 843px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27294i93D36FA15711AE09/image-size/large?v=v2&amp;amp;px=999" role="button" title="makeresults screenshot.PNG" alt="makeresults screenshot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 16:10:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658512#M227462</guid>
      <dc:creator>Mick_OBrien</dc:creator>
      <dc:date>2023-09-24T16:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a repeated set of messages [for looping process]</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658514#M227463</link>
      <description>&lt;P&gt;Try this pre-9 syntax&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="process,message
A,message 0
B,message 0
A,message 1
B,message 1
A,message 2
B,message 2
A,message 1
B,message 3
A,message 2
A,message 1
A,message 2"
| multikv forceheader=1
| table process,message
| eventstats count as repeats by process message
| where repeats &amp;gt; 1&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 24 Sep 2023 16:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658514#M227463</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-09-24T16:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a repeated set of messages [for looping process]</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658515#M227464</link>
      <description>&lt;P&gt;Ha! Good to know about the makeresults. I didn't know that.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 16:28:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658515#M227464</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-09-24T16:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a repeated set of messages [for looping process]</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658519#M227465</link>
      <description>&lt;P&gt;Thanks - the pre-9 syntax works but multiple instances of the same repeated log are displayed....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="makeresults screenshot - pre-9 syntax.PNG" style="width: 639px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27295iB2FDF9A4CEE95EEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="makeresults screenshot - pre-9 syntax.PNG" alt="makeresults screenshot - pre-9 syntax.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a way to limit to one set of logs?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 17:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Identify-a-repeated-set-up-messages-for-looping-process/m-p/658519#M227465</guid>
      <dc:creator>Mick_OBrien</dc:creator>
      <dc:date>2023-09-24T17:24:35Z</dc:date>
    </item>
  </channel>
</rss>

