<?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: Need help in creating graphs for a value extracted from log in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-graphs-for-a-value-extracted-from-log/m-p/656392#M226717</link>
    <description>&lt;P&gt;Have you tried creating a dashboard and adding a panel of the chart type you want, then using your search as the data source?&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 09:04:52 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-09-01T09:04:52Z</dc:date>
    <item>
      <title>Need help in creating graphs for a value extracted from log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-graphs-for-a-value-extracted-from-log/m-p/656386#M226714</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I have log like this,&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;File&lt;/SPAN&gt; &lt;SPAN class=""&gt;Records&lt;/SPAN&gt; &lt;SPAN class=""&gt;count&lt;/SPAN&gt; &lt;SPAN class=""&gt;is&lt;/SPAN&gt;&lt;SPAN&gt; 2 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;File&lt;/SPAN&gt; &lt;SPAN class=""&gt;Records&lt;/SPAN&gt; &lt;SPAN class=""&gt;count&lt;/SPAN&gt; &lt;SPAN class=""&gt;is&lt;/SPAN&gt;&amp;nbsp;5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;File&lt;/SPAN&gt; &lt;SPAN class=""&gt;Records&lt;/SPAN&gt; &lt;SPAN class=""&gt;count&lt;/SPAN&gt; &lt;SPAN class=""&gt;is&lt;/SPAN&gt;&amp;nbsp;45&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;File&lt;/SPAN&gt; &lt;SPAN class=""&gt;Records&lt;/SPAN&gt; &lt;SPAN class=""&gt;count&lt;/SPAN&gt; &lt;SPAN class=""&gt;is&lt;/SPAN&gt;&amp;nbsp;23&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and I have extracted the values 2,5,45,23 as a separate field called &lt;EM&gt;Count&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I use "&lt;EM&gt;base search| table Count"&amp;nbsp;&amp;nbsp;&lt;/EM&gt;I am getting the expected value in a stats table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I want 2,5,45,23 to be plotted in the line graph.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried stats commands but its only showing the no. of events of &lt;EM&gt;Count&lt;/EM&gt; but not the values of count.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please provide your assistance on how can I plot the values of Count into a graph.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 08:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-graphs-for-a-value-extracted-from-log/m-p/656386#M226714</guid>
      <dc:creator>Devi13</dc:creator>
      <dc:date>2023-09-01T08:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating graphs for a value extracted from log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-graphs-for-a-value-extracted-from-log/m-p/656387#M226715</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257602"&gt;@Devi13&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;probably the Counts are strings, so did you tried to convert them in numbers using eval tonumber (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.1.1/SearchReference/ConversionFunctions#tonumber.28.26lt.3Bstr.26gt.3B.2C.26lt.3Bbase.26gt.3B.29" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.1/SearchReference/ConversionFunctions#tonumber.28.26lt.3Bstr.26gt.3B.2C.26lt.3Bbase.26gt.3B.29&lt;/A&gt;)?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;base search
| eval Count=tonumber(Count)
| table Count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 08:28:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-graphs-for-a-value-extracted-from-log/m-p/656387#M226715</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-09-01T08:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating graphs for a value extracted from log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-graphs-for-a-value-extracted-from-log/m-p/656392#M226717</link>
      <description>&lt;P&gt;Have you tried creating a dashboard and adding a panel of the chart type you want, then using your search as the data source?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 09:04:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-graphs-for-a-value-extracted-from-log/m-p/656392#M226717</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-09-01T09:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating graphs for a value extracted from log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-graphs-for-a-value-extracted-from-log/m-p/656402#M226719</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;, Thank you that worked.&lt;/P&gt;&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, yeahh now we are getting the results as expected.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 10:15:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-graphs-for-a-value-extracted-from-log/m-p/656402#M226719</guid>
      <dc:creator>Devi13</dc:creator>
      <dc:date>2023-09-01T10:15:05Z</dc:date>
    </item>
  </channel>
</rss>

