<?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 Collect values from syslog logging in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Collect-values-from-syslog-logging/m-p/452407#M166866</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am new to splunk and have the following question. Below is snippet from a syslog logging. I would like to show the value behind (fordblks): in a chart based on _time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[10-25 06:22:01,010] [freecwmpUTCd main          728] INF (statistics) MEM:1187840  | Total allocated space (uordblks):      997960
[10-25 06:22:01,010] [freecwmpUTCd main          728] INF (statistics) MEM:1187840  | Total free space (fordblks):           189880
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried rex and split and mvindex commands but I don't get it to work yet. Could anyone point me in the right direction?&lt;/P&gt;</description>
    <pubDate>Thu, 25 Oct 2018 11:25:35 GMT</pubDate>
    <dc:creator>admin_fred</dc:creator>
    <dc:date>2018-10-25T11:25:35Z</dc:date>
    <item>
      <title>Collect values from syslog logging</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-values-from-syslog-logging/m-p/452407#M166866</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am new to splunk and have the following question. Below is snippet from a syslog logging. I would like to show the value behind (fordblks): in a chart based on _time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[10-25 06:22:01,010] [freecwmpUTCd main          728] INF (statistics) MEM:1187840  | Total allocated space (uordblks):      997960
[10-25 06:22:01,010] [freecwmpUTCd main          728] INF (statistics) MEM:1187840  | Total free space (fordblks):           189880
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried rex and split and mvindex commands but I don't get it to work yet. Could anyone point me in the right direction?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 11:25:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-values-from-syslog-logging/m-p/452407#M166866</guid>
      <dc:creator>admin_fred</dc:creator>
      <dc:date>2018-10-25T11:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Collect values from syslog logging</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-values-from-syslog-logging/m-p/452408#M166867</link>
      <description>&lt;P&gt;@admin_fred&lt;BR /&gt;
Below should give you the value for fordblks and then you can chart.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex field=_raw "fordblks\):\s+(?&amp;lt;MY_VALUE&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Oct 2018 13:04:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-values-from-syslog-logging/m-p/452408#M166867</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-10-25T13:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Collect values from syslog logging</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-values-from-syslog-logging/m-p/452409#M166868</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;

&lt;P&gt;The code below works fine.&lt;/P&gt;

&lt;P&gt;|rex field=_raw "fordblks):\s+(?\d+)" | table _time MY_VALUE&lt;/P&gt;

&lt;P&gt;How can I now present information in a chart instead of table?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:48:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-values-from-syslog-logging/m-p/452409#M166868</guid>
      <dc:creator>admin_fred</dc:creator>
      <dc:date>2020-09-29T21:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Collect values from syslog logging</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-values-from-syslog-logging/m-p/452410#M166869</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/145893"&gt;@admin_fred&lt;/a&gt;, &lt;BR /&gt;
If you have different values for time, then &lt;CODE&gt;fields _time,MY_VALUE&lt;/CODE&gt; itself could be visualized  in a graph.&lt;BR /&gt;
Or &lt;CODE&gt;stats values(MY_VALUE) by _time&lt;/CODE&gt; or &lt;CODE&gt;chart max(MY_VALUE) by _time&lt;/CODE&gt; depends on your requirement.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:45:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-values-from-syslog-logging/m-p/452410#M166869</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-09-29T21:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Collect values from syslog logging</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-values-from-syslog-logging/m-p/452411#M166870</link>
      <description>&lt;P&gt;The code below is working as expected:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;my search |rex field=_raw "fordblks):\s+(?\d+)" | stats values(MY_VALUE) by  _time my_process
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;note: my_process is an additional field so the statistics for 'fordblks' will be spitted up for multiple processes, which is very nice addition.&lt;/P&gt;

&lt;P&gt;I only notice the search updates (live search) can take quite long. Maybe due to my (slow) Intel Celeron processor.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 14:07:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-values-from-syslog-logging/m-p/452411#M166870</guid>
      <dc:creator>admin_fred</dc:creator>
      <dc:date>2018-10-26T14:07:33Z</dc:date>
    </item>
  </channel>
</rss>

