<?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 generate output/report from unstructured log records in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/676486#M231369</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230212"&gt;@RS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I suppose that the total execution time is always displayed in minutes, otherwise, you have convert it based on the forma, so, please try, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = XXXXXX1 host = hostname.com  source = artifactory-servicesourcetype = artifactory-service "Storage TRASH_AND_BINARIES garbage collector report"
| rex "Total\s+execution\s+time:\s+(?&amp;lt;minutes&amp;gt;\d+)\.(?&amp;lt;seconds&amp;gt;\d+)"
| eval Total_execution_time=minutes*60+seconds
| timechart sum(Total_execution_time) AS Total_execution_time BY host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Sun, 04 Feb 2024 06:43:57 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2024-02-04T06:43:57Z</dc:date>
    <item>
      <title>How to generate output/report from unstructured log records in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/676483#M231368</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have following log data that are in splunk. Below is example data taken from splunk:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2024-02-04T00:15:15.209Z [jfrt ] [INFO ] [64920151065ecdd9] [.s.b.i.GarbageCollectorInfo:81] [cdd9|art-exec-153205] - Storage TRASH_AND_BINARIES garbage collector report:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Total execution time:&amp;nbsp;&amp;nbsp;&amp;nbsp; 15.25 minutes&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Candidates for deletion: 4,960&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Checksums deleted:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4,582&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Binaries deleted:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4,582&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;host = hostname.com index = XXXXXX1 source = artifactory-servicesourcetype = artifactory-service&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How I can display trend/timechart of "&lt;STRONG&gt;Total execution time&lt;/STRONG&gt;&lt;STRONG&gt;"&amp;nbsp;&lt;/STRONG&gt;using splunk query group by timestamp and host name for&amp;nbsp;&lt;STRONG&gt;Storage TRASH_AND_BINARIES garbage collector report&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;I appreciate any help.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 05:23:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/676483#M231368</guid>
      <dc:creator>RS</dc:creator>
      <dc:date>2024-02-04T05:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate output/report from unstructured log records in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/676486#M231369</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230212"&gt;@RS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I suppose that the total execution time is always displayed in minutes, otherwise, you have convert it based on the forma, so, please try, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = XXXXXX1 host = hostname.com  source = artifactory-servicesourcetype = artifactory-service "Storage TRASH_AND_BINARIES garbage collector report"
| rex "Total\s+execution\s+time:\s+(?&amp;lt;minutes&amp;gt;\d+)\.(?&amp;lt;seconds&amp;gt;\d+)"
| eval Total_execution_time=minutes*60+seconds
| timechart sum(Total_execution_time) AS Total_execution_time BY host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 06:43:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/676486#M231369</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-02-04T06:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate output/report from unstructured log records in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/676513#M231374</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;. The given query helped me produce the required timechart.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 23:14:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/676513#M231374</guid>
      <dc:creator>RS</dc:creator>
      <dc:date>2024-02-04T23:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate output/report from unstructured log records in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/676533#M231375</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230212"&gt;@RS&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;let me know if I can help you more, or, please, accept one answer for 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>Mon, 05 Feb 2024 06:14:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/676533#M231375</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-02-05T06:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate output/report from unstructured log records in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/682357#M233131</link>
      <description>&lt;P&gt;Hi, In the above query in my dashboard is displaying large numbers. I want to convert those to shorter number with million added to it. For example if the value shows 600,0000 then the result should display 6mil. How I can achieve? I tried using--&amp;gt;&lt;/P&gt;&lt;P&gt;| eval status=case(like(status, "2%"),"200|201",like(status, "5%"),"503")|timechart span=1d@d usenull=false useother=f count(status) by status|f&lt;STRONG&gt;ieldformat count = count/1000000&amp;nbsp;&lt;/STRONG&gt;But this does not work.&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 05:07:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/682357#M233131</guid>
      <dc:creator>Rahul-Sri</dc:creator>
      <dc:date>2024-03-29T05:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate output/report from unstructured log records in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/682359#M233132</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/266428"&gt;@Rahul-Sri&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;this is another question and it's always better to open a new case, even if this is the followig step to your request, in this way you'll have surely faster and probably better answers.&lt;/P&gt;&lt;P&gt;Anyway, the approach is to use eval not format command and round the number:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval count=round(count/1000000,2)."M"&lt;/LI-CODE&gt;&lt;P&gt;please, accept one answer for 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&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 06:20:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/682359#M233132</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-03-29T06:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate output/report from unstructured log records in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/682396#M233140</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for quick response. I have tried both the options below:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option-1&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval status=case(like(status, "2%"),"200|201",like(status, "5%"),"503")|timechart span=1d@d usenull=false useother=f count(status) by status|eval status=round(status/1000000,2)."M"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Option-2&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval status = if(match(status, "20/[0-1]/"), "success(200 and 201)",status)| eval status=case(like(status, "2%"),"200|201",like(status, "5%"),"503")|timechart span=1d@d usenull=false useother=f count(status) by status|eval count=round(count/1000000,2)."M"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;But in my graph I dont see any difference. I still see large number instead of shorten number with M appended.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Below is the output&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="This is the output which still shows large number." style="width: 902px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29955i83DDF39FD4E371E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunk-output.png" alt="This is the output which still shows large number." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;This is the output which still shows large number.&lt;/span&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 15:58:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/682396#M233140</guid>
      <dc:creator>Rahul-Sri</dc:creator>
      <dc:date>2024-03-29T15:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate output/report from unstructured log records in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/682463#M233152</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/266428"&gt;@Rahul-Sri&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;my solution is only for a table because you transform a number in a string.&lt;/P&gt;&lt;P&gt;if you have to display the result in a graph, you can divide by 1000000 and indicate in the subtitle that the numbers are millions or use a logarythmic scale in the graph.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2024 07:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-output-report-from-unstructured-log-records-in/m-p/682463#M233152</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-03-30T07:24:43Z</dc:date>
    </item>
  </channel>
</rss>

