<?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: Fetching splunk keywords from Splunk logs and create queries in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fetching-splunk-keywords-from-Splunk-logs-and-create-queries/m-p/650002#M53244</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225066"&gt;@aditsss&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;with your search you can filter logs, which are the fields to use for grouping and charting events?&lt;/P&gt;&lt;P&gt;if you want the count for each host, you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="abc*" sourcetype=600000304_gg_abs_ipc2 source="/amex/app/abs-upstreamer/logs/abs-upstreamer.log" "Total msg processed for trim reage file"
| stats count BY host&lt;/LI-CODE&gt;&lt;P&gt;or if you want a time distribution of these events, you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="abc*" sourcetype=600000304_gg_abs_ipc2 source="/amex/app/abs-upstreamer/logs/abs-upstreamer.log" "Total msg processed for trim reage file"
| timechart count&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2023 14:51:06 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-07-11T14:51:06Z</dc:date>
    <item>
      <title>Fetching splunk keywords from Splunk logs and create queries</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fetching-splunk-keywords-from-Splunk-logs-and-create-queries/m-p/650001#M53243</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;I am currently getting splunk logs as shown below:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;2023-07-11&lt;/SPAN&gt; &lt;SPAN class=""&gt;02:31:43.207&lt;/SPAN&gt; [&lt;SPAN class=""&gt;INFO&lt;/SPAN&gt; ] [&lt;SPAN class=""&gt;pool-2-thread-1&lt;/SPAN&gt;] &lt;SPAN class=""&gt;FileSensor&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Total&lt;/SPAN&gt; &lt;SPAN class=""&gt;msg&lt;/SPAN&gt; &lt;SPAN class=""&gt;processed&lt;/SPAN&gt; &lt;SPAN class=""&gt;for&lt;/SPAN&gt; &lt;SPAN class=""&gt;trim&lt;/SPAN&gt; &lt;SPAN class=""&gt;reage&lt;/SPAN&gt; &lt;SPAN class=""&gt;file&lt;/SPAN&gt;&lt;/SPAN&gt;:&lt;SPAN class=""&gt;254&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;host =&amp;nbsp;lgposput503.gso.com&lt;BR /&gt;source =&amp;nbsp;abs-upstreamer.log&lt;BR /&gt;sourcetype =&amp;nbsp;600000304_gg_abs_ipc2&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN class=""&gt;I want to fetch this keyword from splunk logs "Total msg processed for trim reage file:{}"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Also Can someone guide me how can I create query to present it in bar form as of now I have created query&amp;nbsp; like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;index="abc*" sourcetype=600000304_gg_abs_ipc2 source="/amex/app/abs-upstreamer/logs/abs-upstreamer.log" "Total msg processed for trim reage file"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;But I AM NOT ABLE TO CREATE IT IN ANY CHART/BAR FORM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Can someone help me out with the queries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Jul 2023 14:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Fetching-splunk-keywords-from-Splunk-logs-and-create-queries/m-p/650001#M53243</guid>
      <dc:creator>aditsss</dc:creator>
      <dc:date>2023-07-11T14:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching splunk keywords from Splunk logs and create queries</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fetching-splunk-keywords-from-Splunk-logs-and-create-queries/m-p/650002#M53244</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225066"&gt;@aditsss&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;with your search you can filter logs, which are the fields to use for grouping and charting events?&lt;/P&gt;&lt;P&gt;if you want the count for each host, you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="abc*" sourcetype=600000304_gg_abs_ipc2 source="/amex/app/abs-upstreamer/logs/abs-upstreamer.log" "Total msg processed for trim reage file"
| stats count BY host&lt;/LI-CODE&gt;&lt;P&gt;or if you want a time distribution of these events, you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="abc*" sourcetype=600000304_gg_abs_ipc2 source="/amex/app/abs-upstreamer/logs/abs-upstreamer.log" "Total msg processed for trim reage file"
| timechart count&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 14:51:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Fetching-splunk-keywords-from-Splunk-logs-and-create-queries/m-p/650002#M53244</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-11T14:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching splunk keywords from Splunk logs and create queries</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fetching-splunk-keywords-from-Splunk-logs-and-create-queries/m-p/650013#M53248</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want this to be displayed on chart&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;"Total&lt;/SPAN&gt; &lt;SPAN class=""&gt;msg&lt;/SPAN&gt; &lt;SPAN class=""&gt;processed&lt;/SPAN&gt; &lt;SPAN class=""&gt;for&lt;/SPAN&gt; &lt;SPAN class=""&gt;trim&lt;/SPAN&gt; &lt;SPAN class=""&gt;reage&lt;/SPAN&gt; &lt;SPAN class=""&gt;file" I want this to be in my chart along with count as every time the value is different.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I want to show this with value:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2023-07-11&amp;nbsp;02:31:43.207&amp;nbsp;[INFO&amp;nbsp;] [pool-2-thread-1]&amp;nbsp;FileSensor&amp;nbsp;-&amp;nbsp;Total&amp;nbsp;msg&amp;nbsp;processed&amp;nbsp;for&amp;nbsp;trim&amp;nbsp;reage&amp;nbsp;file:254&lt;/P&gt;&lt;P&gt;2023-07-10&amp;nbsp;02:31:43.207&amp;nbsp;[INFO&amp;nbsp;] [pool-2-thread-1]&amp;nbsp;FileSensor&amp;nbsp;-&amp;nbsp;Total&amp;nbsp;msg&amp;nbsp;processed&amp;nbsp;for&amp;nbsp;trim&amp;nbsp;reage&amp;nbsp;file:300&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;STRONG&gt;you can see value is different I want to show that value on bar chart along with "Total&amp;nbsp;msg&amp;nbsp;processed&amp;nbsp;for&amp;nbsp;trim&amp;nbsp;reage&amp;nbsp;file" message&amp;nbsp; as the value will be different for each day.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 15:36:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Fetching-splunk-keywords-from-Splunk-logs-and-create-queries/m-p/650013#M53248</guid>
      <dc:creator>aditsss</dc:creator>
      <dc:date>2023-07-11T15:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching splunk keywords from Splunk logs and create queries</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fetching-splunk-keywords-from-Splunk-logs-and-create-queries/m-p/650091#M53256</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225066"&gt;@aditsss&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: you want to extract the value after the "&lt;SPAN&gt;Total&amp;nbsp;msg&amp;nbsp;processed&amp;nbsp;for&amp;nbsp;trim&amp;nbsp;reage&amp;nbsp;file:" string and display it, is it correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you have only one value a day, you could run something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="abc*" sourcetype=600000304_gg_abs_ipc2 source="/amex/app/abs-upstreamer/logs/abs-upstreamer.log" "Total msg processed for trim reage file:"
| rex "Total msg processed for trim reage file:(?&amp;lt;count&amp;gt;\d+)"
| table _time count&lt;/LI-CODE&gt;&lt;P&gt;If you have more values a day and you want only one value a day, you can use timechart and calculate average:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="abc*" sourcetype=600000304_gg_abs_ipc2 source="/amex/app/abs-upstreamer/logs/abs-upstreamer.log" "Total msg processed for trim reage file:"
| rex "Total msg processed for trim reage file:(?&amp;lt;count&amp;gt;\d+)"
| timechart span=1d values(count) AS count&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 06:27:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Fetching-splunk-keywords-from-Splunk-logs-and-create-queries/m-p/650091#M53256</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-12T06:27:56Z</dc:date>
    </item>
  </channel>
</rss>

