<?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 find out tickets moved from one queue to other in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601646#M209387</link>
    <description>&lt;P&gt;I have a real time Splunk index pushing records into two source types. Source type 1 holds fields including assignmentgroup, manager name , entity etc. Source type 2 hold fields including ticketnumber , assignmentgroup,priority etc.&lt;BR /&gt;&lt;BR /&gt;Sourcetype 2 has tickets updates coming in and each ticket can move from one&amp;nbsp;assignmentgroup to another&amp;nbsp;assignmentgroup which may or may not be present in Source type 1&lt;BR /&gt;&lt;BR /&gt;I would like to find out how many tickets are there in&amp;nbsp;Sourcetype 2 which moved out from assignmentgroups of&amp;nbsp;Sourcetype 1? In other words, how many tickets are present in Sourcetype 2 whose&amp;nbsp;assignmentgroup doesnt belong to the&amp;nbsp;assignmentgroup present in&amp;nbsp;Source type 1.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any leads would be helpful.&lt;BR /&gt;TIA!&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Just an update&lt;/STRONG&gt;, this sourcetype 1 is actually pushed to a lookup file (that has same collumns as in&amp;nbsp;Source type 1, Hence , I intend to use this lookup in the search query)&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 16:24:16 GMT</pubDate>
    <dc:creator>architkhanna</dc:creator>
    <dc:date>2022-06-14T16:24:16Z</dc:date>
    <item>
      <title>How to find out tickets moved from one queue to other</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601646#M209387</link>
      <description>&lt;P&gt;I have a real time Splunk index pushing records into two source types. Source type 1 holds fields including assignmentgroup, manager name , entity etc. Source type 2 hold fields including ticketnumber , assignmentgroup,priority etc.&lt;BR /&gt;&lt;BR /&gt;Sourcetype 2 has tickets updates coming in and each ticket can move from one&amp;nbsp;assignmentgroup to another&amp;nbsp;assignmentgroup which may or may not be present in Source type 1&lt;BR /&gt;&lt;BR /&gt;I would like to find out how many tickets are there in&amp;nbsp;Sourcetype 2 which moved out from assignmentgroups of&amp;nbsp;Sourcetype 1? In other words, how many tickets are present in Sourcetype 2 whose&amp;nbsp;assignmentgroup doesnt belong to the&amp;nbsp;assignmentgroup present in&amp;nbsp;Source type 1.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any leads would be helpful.&lt;BR /&gt;TIA!&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Just an update&lt;/STRONG&gt;, this sourcetype 1 is actually pushed to a lookup file (that has same collumns as in&amp;nbsp;Source type 1, Hence , I intend to use this lookup in the search query)&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 16:24:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601646#M209387</guid>
      <dc:creator>architkhanna</dc:creator>
      <dc:date>2022-06-14T16:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: To find out tickets moved from one queue to other</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601648#M209388</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/209826"&gt;@architkhanna&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: you want to find those&amp;nbsp;&lt;SPAN&gt;ticketnumbers that changed&amp;nbsp;assignmentgroup (both the new and the old assignmentgroup in in sourcetype2) and the new&amp;nbsp;assignmentgroup isn't in sourcetype1, is this correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this is your need, please try something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index sourcetype=sourcetype2
| stats dc(assignmentgroup) AS dc_assignmentgroup values(assignmentgroup) AS assignmentgroup BY ticketnumber 
| where dc_assignmentgroup&amp;gt;1
| mvexpand assignmentgroup
| search NOT [ search index=your_index sourcetype=sourcetype1 | dedup assignmentgroup | fields assignmentgroup ]
| table ticketnumber assignmentgroup&lt;/LI-CODE&gt;&lt;P&gt;In few words:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I found the tickenumbers that changed assignment group&lt;/LI&gt;&lt;LI&gt;I found the ones not present in sourcetype1&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 06:24:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601648#M209388</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-14T06:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: To find out tickets moved from one queue to other</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601668#M209396</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp; ,&lt;BR /&gt;&lt;BR /&gt;Thank you for your response, I think we are very close to the solution here .I have updated the question to clear out the confusion if any&lt;BR /&gt;&lt;BR /&gt;And I used the below query ::&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;index=your_index sourcetype=sourcetype2&lt;BR /&gt;| stats dc(assignmentgroup) AS dc_assignmentgroup values(assignmentgroup) AS assignmentgroup BY ticketnumber&lt;BR /&gt;| where dc_assignmentgroup&amp;gt;1&lt;BR /&gt;| mvexpand assignmentgroup&lt;/P&gt;&lt;P&gt;| search NOT [ search |lookup lookpuname assignmentgroup AS assignmentgroup_raw OUTPUT assignmentgroup manager | dedup assignmentgroup | fields assignmentgroup ]&lt;BR /&gt;| table ticketnumber assignmentgroup&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Using this, I do not get anything in the table but the event counts, rest all is blank&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 07:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601668#M209396</guid>
      <dc:creator>architkhanna</dc:creator>
      <dc:date>2022-06-14T07:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: To find out tickets moved from one queue to other</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601670#M209398</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/209826"&gt;@architkhanna&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the subsearch is wrong, but wher do you have events of sourcetype1: in an index or in a lookup?&lt;/P&gt;&lt;P&gt;if in an index, my first search is correct, if instead they are in a lookup, please try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index sourcetype=sourcetype2
| stats dc(assignmentgroup) AS dc_assignmentgroup values(assignmentgroup) AS assignmentgroup BY ticketnumber
| where dc_assignmentgroup&amp;gt;1
| mvexpand assignmentgroup
| search NOT [ | inputlookup lookpuname | fields assignmentgroup ]
| table ticketnumber assignmentgroup&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 07:43:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601670#M209398</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-14T07:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: To find out tickets moved from one queue to other</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601687#M209407</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;To clear it , sourcetype 1 is in lookup and sourcetype 2 is in index.&lt;BR /&gt;&lt;BR /&gt;I tried using your last search and it did return ticketnumber and assignmentgroup this time , however, when I picked assignmentgroup from this table&amp;nbsp; and searched in sourcetype 1,&amp;nbsp;&amp;nbsp;it actually has a mix of ticket that has&amp;nbsp;assignmentgroup&amp;nbsp; moved but there are scenarios where none of the&amp;nbsp;assignmentgroup from this result&amp;nbsp; are present in sourcetype 1 at all .&lt;BR /&gt;&lt;BR /&gt;So something seems to be missing here.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 09:32:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601687#M209407</guid>
      <dc:creator>architkhanna</dc:creator>
      <dc:date>2022-06-14T09:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: To find out tickets moved from one queue to other</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601693#M209411</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/209826"&gt;@architkhanna&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;maybe I didn't understood:&lt;/P&gt;&lt;P&gt;I'm searching for tickets in the index (sourcetype2) that changed assignmentGroup and aren't in the lookup, is this the result you want or a different one?&lt;/P&gt;&lt;P&gt;For this reason you canot find them in the lookup.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 09:34:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601693#M209411</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-14T09:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: To find out tickets moved from one queue to other</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601696#M209413</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"I'm searching for tickets in the index (sourcetype2) that changed assignmentGroup and aren't in the lookup, is this the result you want or a different one? " --&amp;gt; No&lt;BR /&gt;&lt;BR /&gt;I would like to find out how many tickets are there in&amp;nbsp;Sourcetype 2 which moved out from assignmentgroups present in Sourcetype 1(lookup)?&lt;BR /&gt;&lt;BR /&gt;How I validate is something Im mentioning below:::&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;After using your query result , If I pick up any ticket and search it in sourcetype 2 (since it has all historic data as well ,because hops are made from one assignmentgroup to other) I will see list of changes that happened on that ticket. Ideally few&amp;nbsp; &lt;SPAN&gt;assignmentGroup should be matching from this list to the lookup(Sourcetype 1) and few should not. But I see cases where none are matching, which is something&amp;nbsp;wrong.&lt;BR /&gt;&lt;BR /&gt;I hope I'm clear this time.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 09:54:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601696#M209413</guid>
      <dc:creator>architkhanna</dc:creator>
      <dc:date>2022-06-14T09:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: To find out tickets moved from one queue to other</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601707#M209418</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/209826"&gt;@architkhanna&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;ok, the exact opposite of what I understood!&lt;/P&gt;&lt;P&gt;please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index sourcetype=sourcetype2
| stats dc(assignmentgroup) AS dc_assignmentgroup values(assignmentgroup) AS assignmentgroup values(manager_name) AS manager_name BY ticketnumber
| where dc_assignmentgroup&amp;gt;1
| mvexpand assignmentgroup
| lookup lookupname assignmentgroup OUTPUT manager_name
| eval status=if(manager_name="*","IN","OUT")
| stats dc(status) AS dc_status values(status) AS status BY ticketnumber
| where dc_status&amp;gt;1
| stats count&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 11:03:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601707#M209418</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-14T11:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: To find out tickets moved from one queue to other</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601825#M209453</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm really not sure why have you used manager in your example this time. That is not be used anywhere in logic or for validation.&lt;BR /&gt;And since nothing comes in&amp;nbsp; &amp;gt; 1 clause , hence no results.&lt;BR /&gt;&lt;BR /&gt;I believe We just need to tweak our query you shared before this.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 06:47:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601825#M209453</guid>
      <dc:creator>architkhanna</dc:creator>
      <dc:date>2022-06-15T06:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: To find out tickets moved from one queue to other</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601827#M209455</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/209826"&gt;@architkhanna&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the logic of the first halp I suppose is clear, the logic of the second half is to check if the one assignedGroup is in the lookup and if the second one isn't in.&lt;/P&gt;&lt;P&gt;If it doesn't work, please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index sourcetype=sourcetype2
| stats dc(assignmentgroup) AS dc_assignmentgroup values(assignmentgroup) AS assignmentgroup values(manager_name) AS manager_name BY ticketnumber
| where dc_assignmentgroup&amp;gt;1
| mvexpand assignmentgroup
| lookup lookupname assignmentgroup OUTPUT manager_name
| eval status=if(isnull(manager_name),"OUT","IN")
| stats dc(status) AS dc_status values(status) AS status BY ticketnumber
| where dc_status&amp;gt;1
| stats count&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 06:52:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601827#M209455</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-15T06:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: To find out tickets moved from one queue to other</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601837#M209456</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I do get some count now which is quite low than what I expected. I will validate it and let you know how it went.&lt;BR /&gt;&lt;BR /&gt;Just so you know , the dc_status gives either 1 or 2 value in the end and a ticket in sourcetype 2 can have as much as 10 hops between assignmentgroups plus sourcetype 1/ lookup can have duplicate entrues as well. I hope that is being handled in your last query.&lt;BR /&gt;Although we need not have to worry about how many of these 10 hops it goes out ofassignmentgroup which is not present in sourcetype 1 /lookup1. Even if it does goes out once, it can be considered in my final count.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 07:08:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601837#M209456</guid>
      <dc:creator>architkhanna</dc:creator>
      <dc:date>2022-06-15T07:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: To find out tickets moved from one queue to other</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601847#M209461</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/209826"&gt;@architkhanna&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as I said, I'd like to show you an approach to solve search requirements, not the final solution also because I cannot test your searches on your data.&lt;/P&gt;&lt;P&gt;I hope that I reached my objective.&lt;/P&gt;&lt;P&gt;If my answer solves your need, please accept it of the other people of Community.&lt;/P&gt;&lt;P&gt;Ciao. and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 08:03:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601847#M209461</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-15T08:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: To find out tickets moved from one queue to other</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601860#M209467</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp; Absolutely it helped.&lt;BR /&gt;I get what I was looking for.&lt;BR /&gt;Thank you so much for your patience and quick response.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 08:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-tickets-moved-from-one-queue-to-other/m-p/601860#M209467</guid>
      <dc:creator>architkhanna</dc:creator>
      <dc:date>2022-06-15T08:26:43Z</dc:date>
    </item>
  </channel>
</rss>

