<?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 Transforming Commands in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transforming-Commands/m-p/574115#M200078</link>
    <description>&lt;P&gt;I'm having issue with a search of mine. I've been trying to organize the matrix so that it will be ready for my pivot and then eventually a dashboard visual, but there are three columns that seem to be troublesome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seem as though my eval command is only working with one of the start_DateNo and returning results for only one instance (see pictorial below). Is there a order of operations that I'm missing with my formula, or is there a better command to get the data to what I want? In addition it seems like my "slaName" isn't being reflected accurately as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below I have a snip-it of the error, and then a row/column matrix goal to what I'm ultimately trying to get the data to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jbuddy24_1-1636423774613.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16784i68AFB79B995E4F5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jbuddy24_1-1636423774613.png" alt="jbuddy24_1-1636423774613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Goal:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="138.46154184345016%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="12.5%"&gt;key&lt;/TD&gt;&lt;TD width="12.5%"&gt;team_name&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;start_DateNo&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;start_weekNo&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;start_yearNo&lt;/TD&gt;&lt;TD width="12.5%"&gt;slaName&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;UNIQUE_SLA_Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%"&gt;ADVANA-104&lt;/TD&gt;&lt;TD width="12.5%"&gt;ADVANA&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;2020-6-11&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;24&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;20&lt;/TD&gt;&lt;TD width="12.5%"&gt;&lt;SPAN&gt;DSDE Pending Approval SLA&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&lt;SPAN&gt;ADVANA-104 / 24 / 20 / DSDE Pending Approval SLA &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%"&gt;ADVANA-104&lt;/TD&gt;&lt;TD width="12.5%"&gt;ADVANA&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;2020-6-11&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;24&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;20&lt;/TD&gt;&lt;TD width="12.5%"&gt;&lt;SPAN&gt;DSDE Ready to Start SLA&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&lt;SPAN&gt;ADVANA-104 / 24 / 20 / DSDE Ready to Start SLA&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%"&gt;ADVANA-104&lt;/TD&gt;&lt;TD width="12.5%"&gt;ADVANA&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;2021-5-14&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;19&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;21&lt;/TD&gt;&lt;TD width="12.5%"&gt;&lt;SPAN&gt;DSDE In Progress SLA&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&lt;SPAN&gt;ADVANA-104 / 19 / 21 / DSDE In Progress SLA&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated, I've been going back a forth for a few hours now trying to get this to where I need it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For editing purposes, here is the SPL from the picture above:&lt;/P&gt;&lt;P&gt;index=jira sourcetype="jira:sla:json" OR sourcetype="jira:issues:json"&lt;BR /&gt;| rex field=startDate "(?P&amp;lt;start_DateNo&amp;gt;\d+-\d+-\d+)"&lt;BR /&gt;| rex field=startDate "(?P&amp;lt;start_TimeNo&amp;gt;\d+:\d+:\d+)"&lt;BR /&gt;| eval start_weekNo=strftime(strptime(start_DateNo,"%Y-%m-%d"),"%V")&lt;BR /&gt;| eval start_yearNo=strftime(strptime(start_DateNo,"%Y-%m-%d"),"%y")&lt;BR /&gt;| eval key=coalesce(key,issueKey)&lt;BR /&gt;| stats values(team_name) as team_name values(start_DateNo) as start_DateNo values(start_weekNo) as start_weekNo values(start_yearNo) as start_yearNo values(slaName) as slaName values(fields.status.name) as fields.status.name by key&lt;BR /&gt;| mvexpand slaName&lt;BR /&gt;| mvexpand start_DateNo&lt;BR /&gt;| mvexpand start_weekNo&lt;BR /&gt;| mvexpand start_yearNo&lt;BR /&gt;| where team_name="ADVANA" | where key="ADVANA-104"&lt;BR /&gt;| strcat key " / " start_weekNo " / " start_yearNo " / " slaName UNIQUE_SLA_Count | search UNIQUE_SLA_Count="ADVANA-104 / 19 / 20 / DSDE Pending Approval SLA "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 02:13:08 GMT</pubDate>
    <dc:creator>jbuddy24</dc:creator>
    <dc:date>2021-11-09T02:13:08Z</dc:date>
    <item>
      <title>Transforming Commands</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforming-Commands/m-p/574115#M200078</link>
      <description>&lt;P&gt;I'm having issue with a search of mine. I've been trying to organize the matrix so that it will be ready for my pivot and then eventually a dashboard visual, but there are three columns that seem to be troublesome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seem as though my eval command is only working with one of the start_DateNo and returning results for only one instance (see pictorial below). Is there a order of operations that I'm missing with my formula, or is there a better command to get the data to what I want? In addition it seems like my "slaName" isn't being reflected accurately as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below I have a snip-it of the error, and then a row/column matrix goal to what I'm ultimately trying to get the data to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jbuddy24_1-1636423774613.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16784i68AFB79B995E4F5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jbuddy24_1-1636423774613.png" alt="jbuddy24_1-1636423774613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Goal:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="138.46154184345016%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="12.5%"&gt;key&lt;/TD&gt;&lt;TD width="12.5%"&gt;team_name&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;start_DateNo&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;start_weekNo&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;start_yearNo&lt;/TD&gt;&lt;TD width="12.5%"&gt;slaName&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%"&gt;UNIQUE_SLA_Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%"&gt;ADVANA-104&lt;/TD&gt;&lt;TD width="12.5%"&gt;ADVANA&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;2020-6-11&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;24&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;20&lt;/TD&gt;&lt;TD width="12.5%"&gt;&lt;SPAN&gt;DSDE Pending Approval SLA&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&lt;SPAN&gt;ADVANA-104 / 24 / 20 / DSDE Pending Approval SLA &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%"&gt;ADVANA-104&lt;/TD&gt;&lt;TD width="12.5%"&gt;ADVANA&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;2020-6-11&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;24&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;20&lt;/TD&gt;&lt;TD width="12.5%"&gt;&lt;SPAN&gt;DSDE Ready to Start SLA&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&lt;SPAN&gt;ADVANA-104 / 24 / 20 / DSDE Ready to Start SLA&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%"&gt;ADVANA-104&lt;/TD&gt;&lt;TD width="12.5%"&gt;ADVANA&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;2021-5-14&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;19&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;21&lt;/TD&gt;&lt;TD width="12.5%"&gt;&lt;SPAN&gt;DSDE In Progress SLA&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="12.5%"&gt;&lt;SPAN&gt;ADVANA-104 / 19 / 21 / DSDE In Progress SLA&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated, I've been going back a forth for a few hours now trying to get this to where I need it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For editing purposes, here is the SPL from the picture above:&lt;/P&gt;&lt;P&gt;index=jira sourcetype="jira:sla:json" OR sourcetype="jira:issues:json"&lt;BR /&gt;| rex field=startDate "(?P&amp;lt;start_DateNo&amp;gt;\d+-\d+-\d+)"&lt;BR /&gt;| rex field=startDate "(?P&amp;lt;start_TimeNo&amp;gt;\d+:\d+:\d+)"&lt;BR /&gt;| eval start_weekNo=strftime(strptime(start_DateNo,"%Y-%m-%d"),"%V")&lt;BR /&gt;| eval start_yearNo=strftime(strptime(start_DateNo,"%Y-%m-%d"),"%y")&lt;BR /&gt;| eval key=coalesce(key,issueKey)&lt;BR /&gt;| stats values(team_name) as team_name values(start_DateNo) as start_DateNo values(start_weekNo) as start_weekNo values(start_yearNo) as start_yearNo values(slaName) as slaName values(fields.status.name) as fields.status.name by key&lt;BR /&gt;| mvexpand slaName&lt;BR /&gt;| mvexpand start_DateNo&lt;BR /&gt;| mvexpand start_weekNo&lt;BR /&gt;| mvexpand start_yearNo&lt;BR /&gt;| where team_name="ADVANA" | where key="ADVANA-104"&lt;BR /&gt;| strcat key " / " start_weekNo " / " start_yearNo " / " slaName UNIQUE_SLA_Count | search UNIQUE_SLA_Count="ADVANA-104 / 19 / 20 / DSDE Pending Approval SLA "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 02:13:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforming-Commands/m-p/574115#M200078</guid>
      <dc:creator>jbuddy24</dc:creator>
      <dc:date>2021-11-09T02:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming Commands</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforming-Commands/m-p/574147#M200098</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/239985"&gt;@jbuddy24&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you complicated a search that could be simple (if I correctly understood your need!), please try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=jira sourcetype="jira:sla:json" OR sourcetype="jira:issues:json" team_name="ADVANA" (key="ADVANA-104" OR issueKey="ADVANA-104")
| eval
     start_DateNo=strftime(strptime(startDate,"\d+-\d+-\d+ \d+:\d+:\d+),"\d+-\d+-\d+"),
     start_TimeNo=strftime(strptime(startDate,"\d+-\d+-\d+ \d+:\d+:\d+),"\d+:\d+:\d+)"),
     start_weekNo=strftime(strptime(start_DateNo,"%Y-%m-%d"),"%V"),
     start_yearNo=strftime(strptime(start_DateNo,"%Y-%m-%d"),"%y")
| stats 
     values(team_name) as team_name 
     values(key) as key 
     values(start_yearNo) as start_yearNo 
     values(start_weekNo) AS start_weekNo 
     values(fields.status.name) as fields.status.name 
     by slaName start_DateNo 
| eval UNIQUE_SLA_Count=key." / ".start_weekNo." / ".start_yearNo." / ".slaName.UNIQUE_SLA_Count 
| search UNIQUE_SLA_Count="ADVANA-104 / 19 / 20 / DSDE Pending Approval SLA "
| table key team_name start_DateNo start_weekNo start_yearNo slaName fields.status.name&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 07:15:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforming-Commands/m-p/574147#M200098</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-11-09T07:15:53Z</dc:date>
    </item>
  </channel>
</rss>

