<?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 Calculate SLA of Different Teams for a Specific Ticket in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Calculate-SLA-of-Different-Teams-for-a-Specific-Ticket/m-p/533575#M150781</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229825"&gt;@gozdeyildizz&lt;/a&gt;&amp;nbsp;Thats great news!&lt;BR /&gt;Don't forget to accept an answer and upvote posts that helped you!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Dec 2020 14:41:55 GMT</pubDate>
    <dc:creator>nickhills</dc:creator>
    <dc:date>2020-12-18T14:41:55Z</dc:date>
    <item>
      <title>How to Calculate SLA of Different Teams for a Specific Ticket</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Calculate-SLA-of-Different-Teams-for-a-Specific-Ticket/m-p/533459#M150735</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We are trying to calculate SLA from Jira logs in our Splunk. What we want to achieve to calculate the time between Team field changes for a specific ticket. Our current and expected log results&amp;nbsp; are as below.&lt;/P&gt;&lt;P&gt;Current:&lt;/P&gt;&lt;TABLE width="302"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="127"&gt;Time&lt;/TD&gt;&lt;TD width="104"&gt;Team&lt;/TD&gt;&lt;TD width="71"&gt;Ticket No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;09/12/2020 08:22&lt;/TD&gt;&lt;TD&gt;Level 3&lt;/TD&gt;&lt;TD&gt;Ticket 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08/12/2020 06:08&lt;/TD&gt;&lt;TD&gt;Level 2&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Ticket 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08/12/2020 04:08&lt;/TD&gt;&lt;TD&gt;Level 1&lt;/TD&gt;&lt;TD&gt;Ticket 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;09/12/2020 16:22&lt;/TD&gt;&lt;TD&gt;Level 3&lt;/TD&gt;&lt;TD&gt;Ticket 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08/12/2020 12:08&lt;/TD&gt;&lt;TD&gt;Level 2&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Ticket 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08/12/2020 10:08&lt;/TD&gt;&lt;TD&gt;Level 1&lt;/TD&gt;&lt;TD&gt;Ticket 2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected:&lt;/P&gt;&lt;TABLE width="363"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="127"&gt;Ticket No&lt;/TD&gt;&lt;TD width="121"&gt;Transition&lt;/TD&gt;&lt;TD width="115"&gt;Time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Ticket 1&lt;/TD&gt;&lt;TD&gt;Level 1 to Level 2&lt;/TD&gt;&lt;TD&gt;2 hours&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Ticket 1&lt;/TD&gt;&lt;TD&gt;Level&amp;nbsp; 2 to level 3&lt;/TD&gt;&lt;TD&gt;2 hours,14 mins&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Ticket 2&lt;/TD&gt;&lt;TD&gt;Level 1 to Level 2&lt;/TD&gt;&lt;TD&gt;3 hours&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Ticket 2&lt;/TD&gt;&lt;TD&gt;Level&amp;nbsp; 2 to level 3&lt;/TD&gt;&lt;TD&gt;2 hours,20 mins&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I explained clearly. Any help is really appreciated, thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 15:07:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Calculate-SLA-of-Different-Teams-for-a-Specific-Ticket/m-p/533459#M150735</guid>
      <dc:creator>gozdeyildizz</dc:creator>
      <dc:date>2020-12-17T15:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate SLA of Different Teams for a Specific Ticket</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Calculate-SLA-of-Different-Teams-for-a-Specific-Ticket/m-p/533463#M150739</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229825"&gt;@gozdeyildizz&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use below query;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort "Ticket No" _time 
| autoregress _time p=1 
| autoregress Team P=1 
| eval Transition=Team_p1." to ".Team
| eval Time=tostring(_time-_time_p1,"duration")
| where isnotnull(Time)
| eval Time=replace(Time,"(\d+)\+(\d+)\:(\d+)\:(\d+)","\1 days, \2 hours,\3 mins")
| eval Time=replace(Time,"(\d+)\:(\d+)\:(\d+)","\1 hours,\2 mins")
| eval Time=replace(Time,",00\s(hours|mins)","")
| eval Time=replace(Time,"0(\d)\s","\1 ")
| table "Ticket No" Transition Time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solves your problem, upvote appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 15:56:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Calculate-SLA-of-Different-Teams-for-a-Specific-Ticket/m-p/533463#M150739</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2020-12-17T15:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate SLA of Different Teams for a Specific Ticket</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Calculate-SLA-of-Different-Teams-for-a-Specific-Ticket/m-p/533558#M150769</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your help. It solved partially but the problem is with my ticket logs because It does not have any field saying it is a log related to the team field change.&amp;nbsp; So SPL is calculating Time for every event for example commenting on the ticket or updating any value in the ticket. Therefore I am having the value of "L2 to L2 " for transition field with 0 minutes calculations. I am trying to find a workaround to dismiss those one. Any idea?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 11:35:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Calculate-SLA-of-Different-Teams-for-a-Specific-Ticket/m-p/533558#M150769</guid>
      <dc:creator>gozdeyildizz</dc:creator>
      <dc:date>2020-12-18T11:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate SLA of Different Teams for a Specific Ticket</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Calculate-SLA-of-Different-Teams-for-a-Specific-Ticket/m-p/533560#M150771</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229825"&gt;@gozdeyildizz&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The query was based on your sample data. I updated the query to process events only if Team field is different. It also calculates the time diff correctly even multiple updates between Team changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort "Ticket No" _time 
| autoregress Team P=1 
| where Team!=Team_p1 OR isnull(Team_p1)
| autoregress _time P=1 
| autoregress Team P=1 
| eval Time=tostring(_time-_time_p1,"duration")
| where isnotnull(Time) AND Team!=Team_p1
| eval Transition=Team_p1." to ".Team
| eval Time=replace(Time,"(\d+)\+(\d+)\:(\d+)\:(\d+)","\1 days, \2 hours,\3 mins")
| eval Time=replace(Time,"(\d+)\:(\d+)\:(\d+)","\1 hours,\2 mins")
| eval Time=replace(Time,",00\s(hours|mins)","")
| eval Time=replace(Time,"0(\d)\s","\1 ")
| table "Ticket No" Transition Time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solves your problem, upvote appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 12:17:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Calculate-SLA-of-Different-Teams-for-a-Specific-Ticket/m-p/533560#M150771</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2020-12-18T12:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate SLA of Different Teams for a Specific Ticket</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Calculate-SLA-of-Different-Teams-for-a-Specific-Ticket/m-p/533570#M150779</link>
      <description>&lt;P&gt;Many thanks that worked! I have also added the command&lt;STRONG&gt;&amp;nbsp;| where NOT LIKE(Team_p1,Team)&lt;/STRONG&gt; to filter out&amp;nbsp; time calculations for the updates from the same team&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 13:44:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Calculate-SLA-of-Different-Teams-for-a-Specific-Ticket/m-p/533570#M150779</guid>
      <dc:creator>gozdeyildizz</dc:creator>
      <dc:date>2020-12-18T13:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate SLA of Different Teams for a Specific Ticket</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Calculate-SLA-of-Different-Teams-for-a-Specific-Ticket/m-p/533575#M150781</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229825"&gt;@gozdeyildizz&lt;/a&gt;&amp;nbsp;Thats great news!&lt;BR /&gt;Don't forget to accept an answer and upvote posts that helped you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 14:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Calculate-SLA-of-Different-Teams-for-a-Specific-Ticket/m-p/533575#M150781</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-12-18T14:41:55Z</dc:date>
    </item>
  </channel>
</rss>

