<?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: charting raw data in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/charting-raw-data/m-p/35920#M1589</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;... | rex "unknown community string (?&amp;lt;community_string&amp;gt;\S+)" | chart count by host,community_string
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 15 Aug 2012 19:12:17 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-08-15T19:12:17Z</dc:date>
    <item>
      <title>charting raw data</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/charting-raw-data/m-p/35919#M1588</link>
      <description>&lt;P&gt;I have a raw entries like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[08/14/12 09:58:55] SNMP INFO request  received from 10.25.6.227  with unknown community string cable-d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the word after "string" varies form log to log.&lt;/P&gt;

&lt;P&gt;I want to search something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | chart count(word_after_"string") by host,word_after_string
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I do that?&lt;/P&gt;

&lt;P&gt;Reggards&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2012 19:07:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/charting-raw-data/m-p/35919#M1588</guid>
      <dc:creator>jossaq</dc:creator>
      <dc:date>2012-08-15T19:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: charting raw data</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/charting-raw-data/m-p/35920#M1589</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | rex "unknown community string (?&amp;lt;community_string&amp;gt;\S+)" | chart count by host,community_string
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Aug 2012 19:12:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/charting-raw-data/m-p/35920#M1589</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-08-15T19:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: charting raw data</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/charting-raw-data/m-p/35921#M1590</link>
      <description>&lt;P&gt;You need to do a field extraction. Best choice is probably the rex command, though if you do this frequently you probably want to make it an automatic extraction in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=_raw "string\w+(?&amp;lt;word_after_string&amp;gt;.*)$" | chart count by host, word_after_string
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That should get you started, more details at:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2012 19:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/charting-raw-data/m-p/35921#M1590</guid>
      <dc:creator>tfletcher_splun</dc:creator>
      <dc:date>2012-08-15T19:14:16Z</dc:date>
    </item>
  </channel>
</rss>

