<?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: Not able to apply the timechart on mentioned query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572711#M199612</link>
    <description>&lt;P&gt;This run-anywhere version of your query produces results.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval msg="InputAmountToCredit\":\"23\", Request#: 11 with foo.bar CRERequestId\":\"fubar" 
| rex field=msg "InputAmountToCredit\"\:\"(?&amp;lt;PayloadAmount&amp;gt;[^\"]+)" 
| rex field=msg "Request\#\:\s*(?&amp;lt;ID1&amp;gt;\d+) with (?&amp;lt;Status&amp;gt;\w+.\w+)" 
| rex field=msg "CRERequestId\"\:\"(?&amp;lt;ID2&amp;gt;[^\"]+)" 
| eval ID=coalesce(ID1,ID2) 
| stats latest(Status) as Status values(PayloadAmount) as Amount by ID 
| stats count(list()) by Status 
| eval _time=relative_time(now(),"-1d@d") 
| timechart usenull=f span=1d count by Status&lt;/LI-CODE&gt;&lt;P&gt;The results are uninteresting, however, because every value has the same timestamp (00:00 yesterday).&lt;/P&gt;&lt;P&gt;Also, what are you trying to achieve with &lt;FONT face="courier new,courier"&gt;stats count(list())&lt;/FONT&gt;?&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;list()&lt;/FONT&gt; function is supposed to have an argument.&lt;/P&gt;&lt;P&gt;Perhaps you could explain the problem you are trying to solve&amp;nbsp;so we can offer better solutions.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 17:28:06 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-10-27T17:28:06Z</dc:date>
    <item>
      <title>Not able to apply the timechart on mentioned query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572625#M199586</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eval _raw = msg | rex "InputAmountToCredit\"\:\"(?&amp;lt;PayloadAmount&amp;gt;[^\"]+)" | rex "Request\#\:\s*(?&amp;lt;ID1&amp;gt;\d+) with (?&amp;lt;Status&amp;gt;\w+.\w+)" | rex "CRERequestId\"\:\"(?&amp;lt;ID2&amp;gt;[^\"]+)" | eval ID=coalesce(ID1,ID2) | stats latest(Status) as Status values(PayloadAmount) as Amount by ID| stats count(list()) by Status| eval _time=relative_time(now(),"-1d@d")|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 10:50:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572625#M199586</guid>
      <dc:creator>nikhilup05</dc:creator>
      <dc:date>2021-10-27T10:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to apply the timechart on mentioned query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572636#M199589</link>
      <description>&lt;P&gt;What is preventing you from applying a timechart?&amp;nbsp; How have you tried to do so?&amp;nbsp; What error do you get when you try?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 13:06:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572636#M199589</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-27T13:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to apply the timechart on mentioned query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572648#M199590</link>
      <description>&lt;P&gt;I have passed&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;timechart usenull=f span=1d count by Status after the above query. But I am getting the error as no data found.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 13:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572648#M199590</guid>
      <dc:creator>nikhilup05</dc:creator>
      <dc:date>2021-10-27T13:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to apply the timechart on mentioned query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572711#M199612</link>
      <description>&lt;P&gt;This run-anywhere version of your query produces results.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval msg="InputAmountToCredit\":\"23\", Request#: 11 with foo.bar CRERequestId\":\"fubar" 
| rex field=msg "InputAmountToCredit\"\:\"(?&amp;lt;PayloadAmount&amp;gt;[^\"]+)" 
| rex field=msg "Request\#\:\s*(?&amp;lt;ID1&amp;gt;\d+) with (?&amp;lt;Status&amp;gt;\w+.\w+)" 
| rex field=msg "CRERequestId\"\:\"(?&amp;lt;ID2&amp;gt;[^\"]+)" 
| eval ID=coalesce(ID1,ID2) 
| stats latest(Status) as Status values(PayloadAmount) as Amount by ID 
| stats count(list()) by Status 
| eval _time=relative_time(now(),"-1d@d") 
| timechart usenull=f span=1d count by Status&lt;/LI-CODE&gt;&lt;P&gt;The results are uninteresting, however, because every value has the same timestamp (00:00 yesterday).&lt;/P&gt;&lt;P&gt;Also, what are you trying to achieve with &lt;FONT face="courier new,courier"&gt;stats count(list())&lt;/FONT&gt;?&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;list()&lt;/FONT&gt; function is supposed to have an argument.&lt;/P&gt;&lt;P&gt;Perhaps you could explain the problem you are trying to solve&amp;nbsp;so we can offer better solutions.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 17:28:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572711#M199612</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-27T17:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to show PayloadAmount value into the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572807#M199637</link>
      <description>&lt;P&gt;Please look this query and help to show the amount value on barchart&lt;/P&gt;&lt;P&gt;index = pcf_logs cf_org_name = creorg OR cf_org_name = SvcITDnFAppsOrg cf_app_name=VerifyReviewConsumerService host="*"&lt;BR /&gt;| eval _raw = msg | rex "InputAmountToCredit\"\:\"(?&amp;lt;PayloadAmount&amp;gt;[^\"]+)"&lt;BR /&gt;| rex field=msg "InputAmountToCredit\"\:\"(?&amp;lt;PayloadAmount&amp;gt;[^\"]+)"&lt;BR /&gt;| rex field=msg "Request\#\:\s*(?&amp;lt;ID1&amp;gt;\d+) with (?&amp;lt;Status&amp;gt;\w+.\w+)"&lt;BR /&gt;| rex field=msg "CRERequestId\"\:\"(?&amp;lt;ID2&amp;gt;[^\"]+)"&lt;BR /&gt;| eval ID=coalesce(ID1,ID2)&lt;BR /&gt;| stats latest(Status) as Status values(PayloadAmount) as Amount by ID&lt;BR /&gt;| stats count(list(PayloadAmount)) by Status&lt;BR /&gt;| eval _time=relative_time(now(),"-1d@d")&lt;BR /&gt;| timechart usenull=f span=1d count by Status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 10:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572807#M199637</guid>
      <dc:creator>nikhilup05</dc:creator>
      <dc:date>2021-10-28T10:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to apply the timechart on mentioned query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572808#M199638</link>
      <description>&lt;P&gt;I have to show Amount on barchart. I am not able to show it. pls help us&lt;/P&gt;&lt;P&gt;index = pcf_logs cf_org_name = creorg OR cf_org_name = SvcITDnFAppsOrg cf_app_name=VerifyReviewConsumerService host="*"&lt;BR /&gt;| eval _raw = msg | rex "InputAmountToCredit\"\:\"(?&amp;lt;PayloadAmount&amp;gt;[^\"]+)"&lt;BR /&gt;| rex field=msg "InputAmountToCredit\"\:\"(?&amp;lt;PayloadAmount&amp;gt;[^\"]+)"&lt;BR /&gt;| rex field=msg "Request\#\:\s*(?&amp;lt;ID1&amp;gt;\d+) with (?&amp;lt;Status&amp;gt;\w+.\w+)"&lt;BR /&gt;| rex field=msg "CRERequestId\"\:\"(?&amp;lt;ID2&amp;gt;[^\"]+)"&lt;BR /&gt;| eval ID=coalesce(ID1,ID2)&lt;BR /&gt;| stats latest(Status) as Status values(PayloadAmount) as Amount by ID&lt;BR /&gt;| stats count(list(PayloadAmount)) by Status&lt;BR /&gt;| eval _time=relative_time(now(),"-1d@d")&lt;BR /&gt;| timechart usenull=f span=1d count by Status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 10:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572808#M199638</guid>
      <dc:creator>nikhilup05</dc:creator>
      <dc:date>2021-10-28T10:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to apply the timechart on mentioned query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572853#M199643</link>
      <description>&lt;P&gt;So you want Amount as one axis of the bar chart.&amp;nbsp; What should the other axis be?&amp;nbsp; Once we know that we can devise a query to produce the right information.&amp;nbsp; As it is now, the query seems to be doing a lot more work than is necessary.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 19:15:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572853#M199643</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-29T19:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to apply the timechart on mentioned query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572922#M199672</link>
      <description>&lt;P&gt;&amp;nbsp;On y axis, I&amp;nbsp;I am trying show the amount&amp;nbsp; and in x axis status will be there on the date basis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help me out with the mentioned query&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 08:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/572922#M199672</guid>
      <dc:creator>nikhilup05</dc:creator>
      <dc:date>2021-10-29T08:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to apply the timechart on mentioned query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/573020#M199725</link>
      <description>&lt;P&gt;I'm still confused.&amp;nbsp; The x-axis will have "status on the date basis".&amp;nbsp; What does that mean?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 19:17:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/573020#M199725</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-29T19:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to apply the timechart on mentioned query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/573136#M199768</link>
      <description>&lt;P&gt;In x axis, I want to show the status (which will be approved/reject/Manual) and on the bar&amp;nbsp; I have to show the values of Amount for the particular status.&amp;nbsp; See the attached the sample view.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nikhilup05_1-1635759315875.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16686iF3300E6A173B74C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nikhilup05_1-1635759315875.png" alt="nikhilup05_1-1635759315875.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 09:35:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/573136#M199768</guid>
      <dc:creator>nikhilup05</dc:creator>
      <dc:date>2021-11-01T09:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to apply the timechart on mentioned query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/573475#M199844</link>
      <description>&lt;P&gt;Thanks for the clarifying charts.&lt;/P&gt;&lt;P&gt;Since each axis of a chart can use only one field, you will have to combine the date and Status fields into a single field before charting.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | eval x_axis = date . " " . Status
| chart max(Amount) as Amount over x_axis&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Nov 2021 13:04:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-able-to-apply-the-timechart-on-mentioned-query/m-p/573475#M199844</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-11-03T13:04:39Z</dc:date>
    </item>
  </channel>
</rss>

