<?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: Generate graph from 'CPU RAM process' log in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Generate-graph-from-CPU-RAM-process-log/m-p/22118#M3356</link>
    <description>&lt;P&gt;Thanks kristian. Like you've already guessed I'm still not experienced in the search parameters, I'll take a look into multikv and the other structures.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Apr 2012 16:57:00 GMT</pubDate>
    <dc:creator>splunk_zen</dc:creator>
    <dc:date>2012-04-09T16:57:00Z</dc:date>
    <item>
      <title>Generate graph from 'CPU RAM process' log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Generate-graph-from-CPU-RAM-process-log/m-p/22116#M3354</link>
      <description>&lt;P&gt;How should I configure the Search (and Report) so to get a CPU &amp;amp; RAM line chart (the values not a count) &lt;STRONG&gt;by process&lt;/STRONG&gt;?&lt;/P&gt;

&lt;P&gt;This is my current log file format,&lt;/P&gt;

&lt;P&gt;1.3  0.1 python&lt;BR /&gt;&lt;BR /&gt;
 2.9 11.3 /usr/libexec/mysqld --basedir=/usr&lt;BR /&gt;&lt;BR /&gt;
 2.0  0.1 sqlplus&lt;BR /&gt;&lt;BR /&gt;
 0.0  0.1 ./smt_collector&lt;BR /&gt;&lt;BR /&gt;
 0.0  0.0 ora_dia0_zabbix&lt;BR /&gt;&lt;BR /&gt;
 0.0  0.0 /opt/ptin/zabbix/sbin/zabbix_agentd&lt;BR /&gt;&lt;BR /&gt;
 0.0  0.0 /opt/ptin/zabbix/sbin/zabbix_agentd&lt;BR /&gt;&lt;BR /&gt;
 0.1  0.9 splunkd&lt;BR /&gt;&lt;BR /&gt;
 0.1  0.2 ./uzo_collector&lt;BR /&gt;&lt;BR /&gt;
 0.3  0.5 /bin/sh  &lt;/P&gt;

&lt;P&gt;This is my current Search,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="/opt/splunk/monitoring_logs/ps.log" | rex field=_raw "(?&amp;lt;field1&amp;gt;\d*) (?&amp;lt;field2&amp;gt;\d*) (?&amp;lt;field3&amp;gt;\s*)" | timechart
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:38:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Generate-graph-from-CPU-RAM-process-log/m-p/22116#M3354</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2020-09-28T11:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Generate graph from 'CPU RAM process' log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Generate-graph-from-CPU-RAM-process-log/m-p/22117#M3355</link>
      <description>&lt;P&gt;Do these rex extractions really work, e.g. does &lt;CODE&gt;\d*&lt;/CODE&gt; match &lt;CODE&gt;0.1&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;If it doesn't, I'd try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw "(?&amp;lt;field1&amp;gt;[\S]+)\s+(?&amp;lt;field2&amp;gt;\S+)\s+(?&amp;lt;field3&amp;gt;.*)$" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As for the charting, have you tried the "Advanced Charting" wizard? I believe that it is still found under the "Dashboards &amp;amp; Views" menu in the Search app. The following search gave what I believe is what you want;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search| multikv noheader=t | rex (?&amp;lt;CPU&amp;gt;\S+)\s+(?&amp;lt;MEM&amp;gt;\S+)\s+(?&amp;lt;PROCESS&amp;gt;.*)$ | timechart values(CPU) AS CPU_usage values(MEM) AS Memory_usage by PROCESS
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The charting options were, chart type: line, Multi-series mode: combined, Missing values: connect.&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian &lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2012 13:47:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Generate-graph-from-CPU-RAM-process-log/m-p/22117#M3355</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-04-09T13:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Generate graph from 'CPU RAM process' log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Generate-graph-from-CPU-RAM-process-log/m-p/22118#M3356</link>
      <description>&lt;P&gt;Thanks kristian. Like you've already guessed I'm still not experienced in the search parameters, I'll take a look into multikv and the other structures.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2012 16:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Generate-graph-from-CPU-RAM-process-log/m-p/22118#M3356</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2012-04-09T16:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Generate graph from 'CPU RAM process' log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Generate-graph-from-CPU-RAM-process-log/m-p/22119#M3357</link>
      <description>&lt;P&gt;You're most welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  /k&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2012 19:20:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Generate-graph-from-CPU-RAM-process-log/m-p/22119#M3357</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-04-09T19:20:42Z</dc:date>
    </item>
  </channel>
</rss>

