<?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: Can you help me make a search string that returns a graph of a specific field over time? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410363#M26956</link>
    <description>&lt;P&gt;Thanks for clearing this up for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 07 Oct 2018 17:11:20 GMT</pubDate>
    <dc:creator>aatha89</dc:creator>
    <dc:date>2018-10-07T17:11:20Z</dc:date>
    <item>
      <title>Can you help me make a search string that returns a graph of a specific field over time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410360#M26953</link>
      <description>&lt;P&gt;I have an assignment, where the events under contents log measurements of diskusage of a Linux host.&lt;/P&gt;

&lt;P&gt;read_ops |write_ops |read_KB |write_KB |servce_time |wait_time| device_bandwith_utilization(%) \ fields&lt;/P&gt;

&lt;P&gt;The question is: what will the search query be here?&lt;/P&gt;

&lt;P&gt;i need for example to make a search that makes a graph over field device_bandwith_utilization over time:&lt;/P&gt;

&lt;P&gt;What i am thinking will be the correct answer is the following: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="main" host="linux" collection="device_bandwith_utilization" 
|timechart values(collection), then choose the tab visualization
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;does this seems correct for you guys ?&lt;/P&gt;

&lt;P&gt;i am not able to test this because this events are just on paper. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:31:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410360#M26953</guid>
      <dc:creator>aatha89</dc:creator>
      <dc:date>2020-09-29T21:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me make a search string that returns a graph of a specific field over time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410361#M26954</link>
      <description>&lt;P&gt;@aatha89, What Add-on are you using to collect the data?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Oct 2018 07:12:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410361#M26954</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2018-10-07T07:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me make a search string that returns a graph of a specific field over time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410362#M26955</link>
      <description>&lt;P&gt;If these are your only fields in the Event:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;read_ops |write_ops |read_KB |write_KB |servce_time |wait_time| device_bandwith_utilization&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I do not see and field called collection so your query might more likely start with:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index="main" host="linux" device_bandwith_utilization=*&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;In addition you've used the values() function within timechart. That doesn't seem to make huge sense in this scenario as is may return to much values if you choose a larger timeframe.&lt;BR /&gt;
What you whant to use are &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.2/SearchReference/Aggregatefunctions" target="_blank"&gt;aggregate functions&lt;/A&gt; such as avg() min() max() p75()... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="main" host="linux" device_bandwith_utilization=*
| timechart avg(device_bandwith_utilization) as "Average BW utilization"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:31:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410362#M26955</guid>
      <dc:creator>back2root</dc:creator>
      <dc:date>2020-09-29T21:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me make a search string that returns a graph of a specific field over time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410363#M26956</link>
      <description>&lt;P&gt;Thanks for clearing this up for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Oct 2018 17:11:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410363#M26956</guid>
      <dc:creator>aatha89</dc:creator>
      <dc:date>2018-10-07T17:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me make a search string that returns a graph of a specific field over time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410364#M26957</link>
      <description>&lt;P&gt;I just have this assignment on paper format, and havent been able to use any add-on&lt;/P&gt;</description>
      <pubDate>Sun, 07 Oct 2018 17:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410364#M26957</guid>
      <dc:creator>aatha89</dc:creator>
      <dc:date>2018-10-07T17:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me make a search string that returns a graph of a specific field over time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410365#M26958</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/141053"&gt;@back2root&lt;/a&gt; I have some other questions which i have tried to answer, could you see if i am on the right path ?&lt;/P&gt;

&lt;P&gt;1)Make a search that sums read_ops and write_ops(disk io) per event(log line)&lt;BR /&gt;
Ans:&lt;BR /&gt;
Index="main" host="host" read_ops="* "write_ops="*"&lt;BR /&gt;
|eval sum = read_ops + write_ops &lt;/P&gt;

&lt;P&gt;2) Make a search thats finds det heighest disk io for a time period&lt;BR /&gt;
Ans:&lt;BR /&gt;
Index="main" host="host" "write_ops="*"&lt;BR /&gt;
|stats max(count) by write_ops&lt;/P&gt;

&lt;P&gt;3)Make search finds wait_time over 10&lt;BR /&gt;
Ans:&lt;BR /&gt;
Index="main" host="host" wait_time="*" wait_time&amp;gt;10&lt;/P&gt;

&lt;P&gt;4) Make a search that finds write_KB/write_ops and gives the overall average on the entire time&lt;BR /&gt;
Ans:&lt;BR /&gt;
Index="main" host="host" write_KB="&lt;EM&gt;"write_ops="&lt;/EM&gt;"&lt;BR /&gt;
|eval result=write_KB/write_ops //calculate &lt;BR /&gt;
|stats avg(result) //the average of the result&lt;BR /&gt;
|timechart count by result //For the entire search time&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:31:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410365#M26958</guid>
      <dc:creator>aatha89</dc:creator>
      <dc:date>2020-09-29T21:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me make a search string that returns a graph of a specific field over time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410366#M26959</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/141053"&gt;@back2root&lt;/a&gt; i have some other questions which i have tried to answer, hope you can tell me if i am on right path.&lt;/P&gt;

&lt;P&gt;1)Make a search that sums read_ops and write_ops(Disk io)&lt;BR /&gt;
Ans:&lt;BR /&gt;
 index="main" host="linux" read_ops="&lt;EM&gt;" write_ops="&lt;/EM&gt;"&lt;BR /&gt;
|eval sum=read_ops+write_ops&lt;/P&gt;

&lt;P&gt;2)Make a search that finds the heighest disk io for a time period&lt;BR /&gt;
Ans:&lt;BR /&gt;
 index="main" host="linux" write_ops="*"&lt;BR /&gt;
|stats max(count) by write_ops&lt;/P&gt;

&lt;P&gt;3)Make search that finds the wait_time over 10&lt;BR /&gt;
Ans:&lt;BR /&gt;
 index="main" host="linux" wait_time="*" wait_time&amp;gt;10&lt;/P&gt;

&lt;P&gt;4)Make a search that finds write_kB/write_ops and gives the overall average for the entire search time&lt;BR /&gt;
Ans:&lt;BR /&gt;
 index="main" host="linux" write_KB="&lt;EM&gt;" write_ops="&lt;/EM&gt;"&lt;BR /&gt;
|eval result = write_kB/write_ops //calculates&lt;BR /&gt;
|stats avg(result) //finds the average&lt;BR /&gt;
|timechart count by result // for the entire search time&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:31:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-me-make-a-search-string-that-returns-a-graph-of-a/m-p/410366#M26959</guid>
      <dc:creator>aatha89</dc:creator>
      <dc:date>2020-09-29T21:31:18Z</dc:date>
    </item>
  </channel>
</rss>

