<?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: How to get latest transactionId ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686327#M234134</link>
    <description>&lt;P&gt;Apart from you, who else knows how frequently the correlation id changes?&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2024 14:39:59 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-05-03T14:39:59Z</dc:date>
    <item>
      <title>How to get latest transactionId ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686300#M234125</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to get count of enabled and disabled from field. Then i want to show the field values based on latest correlation ID.The currstatus field will run for every 10 min.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"content.currStatus"="*" |stats  values(content.currStatus) as currStatus by latest(correlationId)|where currStatus!="Interface has no entry found in object Store"|stats count by currStatus&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 12:20:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686300#M234125</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-05-03T12:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest transactionId ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686304#M234126</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"content.currStatus"="*" [search &amp;lt;your index&amp;gt; | stats latest(correlationId) as correlationId | table correlationId | format] | where currStatus!="Interface has no entry found in object Store"|stats count by currStatus&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 May 2024 12:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686304#M234126</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-03T12:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest transactionId ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686307#M234127</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/205249"&gt;@karthi2809&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if currStatus has values enabled or disabled, please try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"content.currStatus"="*" content.currStatus!="Interface has no entry found in object Store"
| rename content.currStatus AS currStatus
| stats  
     count(eval(currStatus="enabled"))AS enabled_count
     count(eval(currStatus="disabled"))AS disabled_count
     last(currStatus) AS last_currStatus
     BY correlationId)&lt;/LI-CODE&gt;&lt;P&gt;In addition one hint: add always the index containing these events: you'll have a faster search and you'll be sure to take events.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 12:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686307#M234127</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-03T12:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest transactionId ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686309#M234128</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The query which is working but i need total counts of enabled and disabled in the output .Now its showing&amp;nbsp; 1 for enabled and 1for disabled.But the event is getting 79&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="mulesoft" applicationName="scheduler"    message="Upcoming :*" [search index="mulesoft" applicationName="scheduler"  | stats latest(correlationId) as correlationId | table correlationId | format]  |stats   values(content.currStatus) as currStatus by correlationId|where currStatus!="Interface has no entry found in object Store"|stats count by currStatus

There are 79 events in this 74 is enabled and 5 are disabled .The values enabled and disabled from currstatus field.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 12:57:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686309#M234128</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-05-03T12:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest transactionId ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686313#M234129</link>
      <description>&lt;P&gt;You don't need the stats values() line&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="mulesoft" applicationName="scheduler"    message="Upcoming :*" [search index="mulesoft" applicationName="scheduler"  | stats latest(correlationId) as correlationId | table correlationId | format]  |where `content.currStatus`!="Interface has no entry found in object Store"|stats count by `content.currStatus`&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 May 2024 12:59:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686313#M234129</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-03T12:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest transactionId ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686314#M234130</link>
      <description>&lt;P&gt;If i remove stats line it will shows 0 events.Not showing any counts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 13:10:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686314#M234130</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-05-03T13:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest transactionId ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686315#M234131</link>
      <description>&lt;P&gt;Just i want to show the latest correlationId and in your query its showing multiple correlationID and i just want show the count of enabled and disabled in pie chart.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 13:15:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686315#M234131</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-05-03T13:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest transactionId ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686317#M234132</link>
      <description>&lt;P&gt;Got it thanks its working and latest correlationId .What time frequency the correlationId change.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 13:23:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686317#M234132</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-05-03T13:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest transactionId ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686327#M234134</link>
      <description>&lt;P&gt;Apart from you, who else knows how frequently the correlation id changes?&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 14:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686327#M234134</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-03T14:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest transactionId ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686342#M234138</link>
      <description>&lt;P&gt;Sorry its not working .Sometimes the values coming but sometimes its not showing any values&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686342#M234138</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-05-03T15:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest transactionId ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686344#M234140</link>
      <description>&lt;P&gt;Please provide examples of what is working and what is not working otherwise just saying it is not working is not very helpful!&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:21:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686344#M234140</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-03T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest transactionId ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686350#M234144</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;First time its coming when i am trying to refresh the same query i am not find any values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Query which i am trying:

index="mulesoft" applicationName="scheduler" environment=DEV   message="Upcoming Executions for Scheduler :*"  [search index="mulesoft" applicationName="
scheduler"  | stats latest(correlationId) as correlationId | table correlationId | format] |where content.currStatus!="Interface has no entry found in object Store"|stats count by content.currStatus

If i use the query in seperate search its showing the latest correlation values:
message="Upcoming Executions for Scheduler :*"  environment=DEV | stats  latest(correlationId) as correlationId   | table correlationId&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 16:33:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-latest-transactionId/m-p/686350#M234144</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-05-03T16:33:19Z</dc:date>
    </item>
  </channel>
</rss>

