<?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: Use the spath command correctly to create a pie chart divided by type of errors received in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328291#M21272</link>
    <description>&lt;P&gt;Seems like the path in front of the first open curly brace &lt;CODE&gt;{&lt;/CODE&gt;, and or possibly the carriage returns, might be confusing the &lt;CODE&gt;spath&lt;/CODE&gt; command.  Here's a working run-anywhere example after we pulled out the carriage returns and used a &lt;CODE&gt;rex&lt;/CODE&gt;, shown here, to extract the portion of the &lt;CODE&gt;_raw&lt;/CODE&gt; that is actually a valid JSON.  &lt;/P&gt;

&lt;P&gt;This example should help you to figure out how to make yours work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval _raw="/XXX/projects/Sales_PostSales_processPostSaleOrder_VIP_CCT:{    \"Service\":\"Enterprise Sales\",    \"Date\":\"09/11/2017 10:48:35.947\",    \"Environment\":\"XXX\",    \"Debug\":\"Error\",  \"Source\":\"PostSalesIntegration\",    \"Description\":\"Error::processPostSaleOrder_VIP_CCT. Error occurred while trying to process the message. {resultType=FAILED, postsalesId=null, message=Error Message: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [LastName]: [LastName]\n\nError Stack Trace: Class.CctDataloadServices.processRestRequest: line 239, column 1\nClass.CctDataloadServices.ProcessRestRequest.processRequest: line 62, column 1\nClass.CommonService.executeRequest: line 118, column 1\nClass.CommonService.doPost: line 37, column 1, contactId=null, accountId=null}\",    \"Message_Unique_Id\":null,    \"Message_qualifier\":null,    \"JMSMessageID\":null,    \"Detail\":{         \"error\":{            \"message\":{               \"resultType\":\"FAILED\",             \"postsalesId\":null,            \"message\":\"Error Message: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [LastName]: [LastName]\n\nError Stack Trace: Class.CctDataloadServices.processRestRequest: line 239, column 1\nClass.CctDataloadServices.ProcessRestRequest.processRequest: line 62, column 1\nClass.CommonService.executeRequest: line 118, column 1\nClass.CommonService.doPost: line 37, column 1\",             \"contactId\":null,            \"accountId\":null          },          \"reason\":null,          \"resolution\":null       }    },    \"stacktrace\":{         \"tracking\":null,       \"error\":{            \"resultType\":\"FAILED\",          \"postsalesId\":null,          \"message\":\"Error Message: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [LastName]: [LastName]\n\nError Stack Trace: Class.CctDataloadServices.processRestRequest: line 239, column 1\nClass.CctDataloadServices.ProcessRestRequest.processRequest: line 62, column 1\nClass.CommonService.executeRequest: line 118, column 1\nClass.CommonService.doPost: line 37, column 1\",          \"contactId\":null,          \"accountId\":null       }    } }"
| rename COMMENT as "The above just enters test data"

| rex field=_raw "^(?&amp;lt;myJunk&amp;gt;[^{]+)(?&amp;lt;myJSON&amp;gt;.*)"
| spath input=myJSON output=msg path=Detail.error.message.message
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 Sep 2017 20:42:05 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-09-11T20:42:05Z</dc:date>
    <item>
      <title>How to use the spath command correctly to create a pie chart divided by type of errors received?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328290#M21271</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I have been trying to use the spath command correctly to create a pie chart divided by type of errors received. When I create the search and click on the object, the field where the error message is, it's in JSON format. Looks like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;/XXX/projects/Sales_PostSales_processPostSaleOrder_VIP_CCT:{  
   "Service":"Enterprise Sales",
   "Date":"09/11/2017 10:48:35.947",
   "Environment":"XXX",
   "Debug":"Error",
   "Source":"PostSalesIntegration",
   "Description":"Error::processPostSaleOrder_VIP_CCT. Error occurred while trying to process the message. {resultType=FAILED, postsalesId=null, message=Error Message: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [LastName]: [LastName]\n\nError Stack Trace: Class.CctDataloadServices.processRestRequest: line 239, column 1\nClass.CctDataloadServices.ProcessRestRequest.processRequest: line 62, column 1\nClass.CommonService.executeRequest: line 118, column 1\nClass.CommonService.doPost: line 37, column 1, contactId=null, accountId=null}",
   "Message_Unique_Id":null,
   "Message_qualifier":null,
   "JMSMessageID":null,
   "Detail":{  
      "error":{  
         "message":{  
            "resultType":"FAILED",
            "postsalesId":null,
            "message":"Error Message: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [LastName]: [LastName]\n\nError Stack Trace: Class.CctDataloadServices.processRestRequest: line 239, column 1\nClass.CctDataloadServices.ProcessRestRequest.processRequest: line 62, column 1\nClass.CommonService.executeRequest: line 118, column 1\nClass.CommonService.doPost: line 37, column 1",
            "contactId":null,
            "accountId":null
         },
         "reason":null,
         "resolution":null
      }
   },
   "stacktrace":{  
      "tracking":null,
      "error":{  
         "resultType":"FAILED",
         "postsalesId":null,
         "message":"Error Message: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [LastName]: [LastName]\n\nError Stack Trace: Class.CctDataloadServices.processRestRequest: line 239, column 1\nClass.CctDataloadServices.ProcessRestRequest.processRequest: line 62, column 1\nClass.CommonService.executeRequest: line 118, column 1\nClass.CommonService.doPost: line 37, column 1",
         "contactId":null,
         "accountId":null
      }
   }
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and the field for this object is titled "msg".&lt;/P&gt;
&lt;P&gt;The specific error message I want is in Detail.message.&lt;/P&gt;
&lt;P&gt;Right now I have:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;index="ips_snaplogic""postsales" lvl="ERROR"| spath| timechart by "msg.Detail.error.message.message"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm just not getting anywhere with this. I hope my question is clear. Can anyone help?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 15:33:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328290#M21271</guid>
      <dc:creator>zeroCalm</dc:creator>
      <dc:date>2023-02-17T15:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use the spath command correctly to create a pie chart divided by type of errors received</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328291#M21272</link>
      <description>&lt;P&gt;Seems like the path in front of the first open curly brace &lt;CODE&gt;{&lt;/CODE&gt;, and or possibly the carriage returns, might be confusing the &lt;CODE&gt;spath&lt;/CODE&gt; command.  Here's a working run-anywhere example after we pulled out the carriage returns and used a &lt;CODE&gt;rex&lt;/CODE&gt;, shown here, to extract the portion of the &lt;CODE&gt;_raw&lt;/CODE&gt; that is actually a valid JSON.  &lt;/P&gt;

&lt;P&gt;This example should help you to figure out how to make yours work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval _raw="/XXX/projects/Sales_PostSales_processPostSaleOrder_VIP_CCT:{    \"Service\":\"Enterprise Sales\",    \"Date\":\"09/11/2017 10:48:35.947\",    \"Environment\":\"XXX\",    \"Debug\":\"Error\",  \"Source\":\"PostSalesIntegration\",    \"Description\":\"Error::processPostSaleOrder_VIP_CCT. Error occurred while trying to process the message. {resultType=FAILED, postsalesId=null, message=Error Message: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [LastName]: [LastName]\n\nError Stack Trace: Class.CctDataloadServices.processRestRequest: line 239, column 1\nClass.CctDataloadServices.ProcessRestRequest.processRequest: line 62, column 1\nClass.CommonService.executeRequest: line 118, column 1\nClass.CommonService.doPost: line 37, column 1, contactId=null, accountId=null}\",    \"Message_Unique_Id\":null,    \"Message_qualifier\":null,    \"JMSMessageID\":null,    \"Detail\":{         \"error\":{            \"message\":{               \"resultType\":\"FAILED\",             \"postsalesId\":null,            \"message\":\"Error Message: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [LastName]: [LastName]\n\nError Stack Trace: Class.CctDataloadServices.processRestRequest: line 239, column 1\nClass.CctDataloadServices.ProcessRestRequest.processRequest: line 62, column 1\nClass.CommonService.executeRequest: line 118, column 1\nClass.CommonService.doPost: line 37, column 1\",             \"contactId\":null,            \"accountId\":null          },          \"reason\":null,          \"resolution\":null       }    },    \"stacktrace\":{         \"tracking\":null,       \"error\":{            \"resultType\":\"FAILED\",          \"postsalesId\":null,          \"message\":\"Error Message: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [LastName]: [LastName]\n\nError Stack Trace: Class.CctDataloadServices.processRestRequest: line 239, column 1\nClass.CctDataloadServices.ProcessRestRequest.processRequest: line 62, column 1\nClass.CommonService.executeRequest: line 118, column 1\nClass.CommonService.doPost: line 37, column 1\",          \"contactId\":null,          \"accountId\":null       }    } }"
| rename COMMENT as "The above just enters test data"

| rex field=_raw "^(?&amp;lt;myJunk&amp;gt;[^{]+)(?&amp;lt;myJSON&amp;gt;.*)"
| spath input=myJSON output=msg path=Detail.error.message.message
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Sep 2017 20:42:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328291#M21272</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-11T20:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use the spath command correctly to create a pie chart divided by type of errors received</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328292#M21273</link>
      <description>&lt;P&gt;I see 2 problems.  First, &lt;CODE&gt;spath&lt;/CODE&gt; is not working because it doesn't see clear XML or JSON.  Once we fix that, it still won't work because you have not given &lt;CODE&gt;timechart&lt;/CODE&gt; an aggregation function.  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults | eval _raw="/XXX/projects/Sales_PostSales_processPostSaleOrder_VIP_CCT:{  
    \"Service\":\"Enterprise Sales\",
    \"Date\":\"09/11/2017 10:48:35.947\",
    \"Environment\":\"XXX\",
    \"Debug\":\"Error\",
    \"Source\":\"PostSalesIntegration\",
    \"Description\":\"Error::processPostSaleOrder_VIP_CCT. Error occurred while trying to process the message. {resultType=FAILED, postsalesId=null, message=Error Message: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [LastName]: [LastName]\n\nError Stack Trace: Class.CctDataloadServices.processRestRequest: line 239, column 1\nClass.CctDataloadServices.ProcessRestRequest.processRequest: line 62, column 1\nClass.CommonService.executeRequest: line 118, column 1\nClass.CommonService.doPost: line 37, column 1, contactId=null, accountId=null}\",
    \"Message_Unique_Id\":null,
    \"Message_qualifier\":null,
    \"JMSMessageID\":null,
    \"Detail\":{  
       \"error\":{  
          \"message\":{  
             \"resultType\":\"FAILED\",
             \"postsalesId\":null,
             \"message\":\"Error Message: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [LastName]: [LastName]\n\nError Stack Trace: Class.CctDataloadServices.processRestRequest: line 239, column 1\nClass.CctDataloadServices.ProcessRestRequest.processRequest: line 62, column 1\nClass.CommonService.executeRequest: line 118, column 1\nClass.CommonService.doPost: line 37, column 1\",
             \"contactId\":null,
             \"accountId\":null
          },
          \"reason\":null,
          \"resolution\":null
       }
    },
    \"stacktrace\":{  
       \"tracking\":null,
       \"error\":{  
          \"resultType\":\"FAILED\",
          \"postsalesId\":null,
          \"message\":\"Error Message: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [LastName]: [LastName]\n\nError Stack Trace: Class.CctDataloadServices.processRestRequest: line 239, column 1\nClass.CctDataloadServices.ProcessRestRequest.processRequest: line 62, column 1\nClass.CommonService.executeRequest: line 118, column 1\nClass.CommonService.doPost: line 37, column 1\",
          \"contactId\":null,
          \"accountId\":null
       }
    }
 }"

 | rename COMMENT AS "Everything above generates sample event data; everything below is your solution"

 | rex mode=sed "s/.*{/{/"
 | spath output=msg path=Detail.error.message.message
 | chart count BY msg
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Sep 2017 05:35:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328292#M21273</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-12T05:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use the spath command correctly to create a pie chart divided by type of errors received</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328293#M21274</link>
      <description>&lt;P&gt;Thanks for responding, this has gotten me much closer and this is helping me to understand the correct usage of spath and rex.  THe piechart is showing up, but I don't quite understand what I'm getting.   THe pieces of the pie seem to be divided and labeled by time or date (depending on search time period).  I'm looking to replace that with the actual Detail.error.message.message.  Is this possible?&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;I have attached screenshots.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://imgur.com/AGf3Sgb"&gt;https://imgur.com/AGf3Sgb&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://imgur.com/bya90Us"&gt;https://imgur.com/bya90Us&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 13:07:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328293#M21274</guid>
      <dc:creator>zeroCalm</dc:creator>
      <dc:date>2017-09-12T13:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Use the spath command correctly to create a pie chart divided by type of errors received</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328294#M21275</link>
      <description>&lt;P&gt;@zerocalm - Start off by NOT feeding it to a pie chart.  Just look at the data that is left after you extract the JSON.  &lt;/P&gt;

&lt;P&gt;Cut the data down to ONLY whatever you want the pie chart to show.   If you are wanting the &lt;CODE&gt;count by msg&lt;/CODE&gt;, then all you need is &lt;CODE&gt;|table msg&lt;/CODE&gt; then &lt;CODE&gt;| chart count by msg&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Okay, &lt;CODE&gt;|table msg&lt;/CODE&gt; is redundant if it's immediately followed by that &lt;CODE&gt;chart&lt;/CODE&gt; command, but I'm teaching a thought process here.   Look at the data.  Format the data.  Get rid of everything that isn't the data you want.  &lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;In this case, the message is crazy long to put in a &lt;EM&gt;pie chart&lt;/EM&gt;.  In the example data, which of these is your error message? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Upsert failed. 

Error Message: Upsert failed. 

Error Message: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING

Error Message: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [LastName]: [LastName]\n\n
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;Use this to look at the top 5 messages and see what part of them you really need.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count by msg
| sort 5 - count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or its equivalent&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| top 5 msg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Figure out what part of &lt;CODE&gt;message&lt;/CODE&gt; you want to use as the title for the pie slice, then we can get that extracted and finish your viz.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 15:06:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328294#M21275</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-12T15:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Use the spath command correctly to create a pie chart divided by type of errors received</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328295#M21276</link>
      <description>&lt;P&gt;@DalJeanis -   When using "chart" as opposed to "timechart", I receive a No Results Found.  This is on the same search criteria.&lt;/P&gt;

&lt;P&gt;index="ips_snaplogic""postsales" lvl="ERROR"| spath| rex mode=sed "s/.*{/{/"&lt;BR /&gt;
  | spath output=msg path=Detail.error.message.message&lt;BR /&gt;
  | chart count BY msg&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Also, when I use the  " | table msg | chart count by msg" . -  I get a message instructing me to use verbose.  This gives me Events, but no Chart says "No results found."&lt;/P&gt;

&lt;P&gt;index="ips_snaplogic""postsales" lvl="ERROR"| spath| rex mode=sed "s/.*{/{/"&lt;BR /&gt;
  | spath output=msg path=Detail.error.message.message&lt;BR /&gt;
  | table msg | chart count by msg&lt;/P&gt;

&lt;P&gt;I've looked around, but I see no reason why I should receive these messages.&lt;/P&gt;

&lt;P&gt;Thanks again for everything.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 16:37:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328295#M21276</guid>
      <dc:creator>zeroCalm</dc:creator>
      <dc:date>2017-09-12T16:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use the spath command correctly to create a pie chart divided by type of errors received</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328296#M21277</link>
      <description>&lt;P&gt;Oh, you need a &lt;CODE&gt;pie&lt;/CODE&gt; chart!  Then change &lt;CODE&gt;timechart&lt;/CODE&gt; to just &lt;CODE&gt;chart&lt;/CODE&gt; and you should be good to go.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 19:50:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328296#M21277</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-12T19:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Use the spath command correctly to create a pie chart divided by type of errors received</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328297#M21278</link>
      <description>&lt;P&gt;Thanks again for the response.  Is there any reason I would get results for this search:&lt;/P&gt;

&lt;P&gt;index="ips_snaplogic""postsales" lvl="ERROR"| spath| rex mode=sed "s/.*{/{/"&lt;BR /&gt;
| spath output=msg path=Detail.error.message.message&lt;BR /&gt;
| timechart count by msg&lt;/P&gt;

&lt;P&gt;...but when I change timechart to chart I get "No results found"?&lt;/P&gt;

&lt;P&gt;I can't find anything.  I've been looking for any thing on chart, but found no reason for this.  &lt;/P&gt;

&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 18:23:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/328297#M21278</guid>
      <dc:creator>zeroCalm</dc:creator>
      <dc:date>2017-09-18T18:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Use the spath command correctly to create a pie chart divided by type of errors received</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/631281#M51760</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/52249"&gt;@zeroCalm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the reason why the results are coming for count and not for timechart is because the timechart must not be pointing to correct field for _time. You can override it by converting your time field to splunk time format and pass to _time.&lt;/P&gt;&lt;P&gt;Ex:&amp;nbsp;eval formatted_time =strptime(you_time_field_value,"%Y-%m-%dT%H:%M:%S") | eval _time = formatted_time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Posting it as it might help others &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 06:19:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-spath-command-correctly-to-create-a-pie-chart/m-p/631281#M51760</guid>
      <dc:creator>mallika_reddy_</dc:creator>
      <dc:date>2023-02-17T06:19:47Z</dc:date>
    </item>
  </channel>
</rss>

