<?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: Regex multiple fields extraction and graph in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-multiple-fields-extraction-and-graph/m-p/25737#M4885</link>
    <description>&lt;P&gt;One event gives out over 1000 lines of data, each line is a statistic event, however those events can be in multiple servers(divided by the &lt;NUMBER&gt; such as &amp;lt;2&amp;gt;)&lt;BR /&gt;
I need somehow to tell Splunk to know those fields so I can create graphs on each field as I wish&lt;/NUMBER&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 06 Aug 2012 05:15:53 GMT</pubDate>
    <dc:creator>nirt</dc:creator>
    <dc:date>2012-08-06T05:15:53Z</dc:date>
    <item>
      <title>Regex multiple fields extraction and graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-multiple-fields-extraction-and-graph/m-p/25735#M4883</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;
I have a website which produces statistics and it is shown like this(over 1K lines, so just pasting a few)&lt;BR /&gt;
Each line is produced for each server(e.g there are 2/3 servers) which are seperated by &lt;NUMBER&gt;&lt;COUNTERS&gt;&lt;/COUNTERS&gt;&lt;/NUMBER&gt;&lt;BR /&gt;
:&lt;BR /&gt;
&lt;DISTRIBUTED&gt;&lt;BR /&gt;
&amp;lt;3&amp;gt;&lt;BR /&gt;
    null&lt;BR /&gt;
&lt;/DISTRIBUTED&gt;&lt;BR /&gt;
&amp;lt;2&amp;gt;&lt;BR /&gt;
    RealDBMisc.aborted.hod.-1.number = 0&lt;BR /&gt;
    RealDBMisc.aborted.hod.-1.total = 0&lt;BR /&gt;
    RealDBMisc.aborted.hod.-1.avarage = 0&lt;BR /&gt;
    UserDBMisc.aborted.hod.-1.number = 0&lt;BR /&gt;
    UserDBMisc.aborted.hod.-1.avarage = 0&lt;BR /&gt;
    UserDBMisc.aborted.hod.-1.total = 0&lt;BR /&gt;
    ipc.Routing.RouteCostRequest.success.hod.-1.total = 15204&lt;BR /&gt;
    ipc.vs-changeVenueProduct.success.hod.-1.number = 82&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The statistics are for the past hour, so the collection is also per hour&lt;BR /&gt;
I'm looking for a regex syntax to help me filter fields and create graphs, for example I want a graph to show me the numbers after UserDBMisc.aborted.hod.-1.avarage for a custom time&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 05 Aug 2012 09:21:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-multiple-fields-extraction-and-graph/m-p/25735#M4883</guid>
      <dc:creator>nirt</dc:creator>
      <dc:date>2012-08-05T09:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regex multiple fields extraction and graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-multiple-fields-extraction-and-graph/m-p/25736#M4884</link>
      <description>&lt;P&gt;I'm a little fuzzy on understanding this one, is that one event?  It might help (me and others) to see what three events would like like from this source. I'm sure we can figure it out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 05 Aug 2012 16:08:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-multiple-fields-extraction-and-graph/m-p/25736#M4884</guid>
      <dc:creator>sandeep_at_func</dc:creator>
      <dc:date>2012-08-05T16:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regex multiple fields extraction and graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-multiple-fields-extraction-and-graph/m-p/25737#M4885</link>
      <description>&lt;P&gt;One event gives out over 1000 lines of data, each line is a statistic event, however those events can be in multiple servers(divided by the &lt;NUMBER&gt; such as &amp;lt;2&amp;gt;)&lt;BR /&gt;
I need somehow to tell Splunk to know those fields so I can create graphs on each field as I wish&lt;/NUMBER&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2012 05:15:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-multiple-fields-extraction-and-graph/m-p/25737#M4885</guid>
      <dc:creator>nirt</dc:creator>
      <dc:date>2012-08-06T05:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Regex multiple fields extraction and graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-multiple-fields-extraction-and-graph/m-p/25738#M4886</link>
      <description>&lt;P&gt;Small correction:&lt;BR /&gt;
I have a source that gives a lot of statistic information, each line is different content&lt;BR /&gt;
for example:&lt;BR /&gt;
pc.DDBRemoveCache.alerts.success.hod.-1.total = 527&lt;BR /&gt;
ipc.DDBRemoveCache.alerts.success.hod.-1.avarage = 1&lt;BR /&gt;
ipc.DDBRemoveCache.alerts.success.hod.-1.number = 527&lt;BR /&gt;
ipc.DDBUpdateCache.alerts.success.hod.-1.number = 161&lt;BR /&gt;
ipc.DDBUpdateCache.alerts.success.hod.-1.total = 161&lt;BR /&gt;
ipc.DDBUpdateCache.alerts.success.hod.-1.avarage = 1&lt;/P&gt;

&lt;P&gt;so it's quite simple: name = value&lt;BR /&gt;
but I can't seem to get the regex properly working&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2012 08:26:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-multiple-fields-extraction-and-graph/m-p/25738#M4886</guid>
      <dc:creator>nirt</dc:creator>
      <dc:date>2012-08-06T08:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regex multiple fields extraction and graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-multiple-fields-extraction-and-graph/m-p/25739#M4887</link>
      <description>&lt;P&gt;Something like this?:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=yourdata | rex max_match=99999 field=your_field_holding_all_values "(?&amp;lt;yourfield&amp;gt;[^\n]+)"  | mvexpand yourfield | search yourfield="ipc.DDBRemoveCache.alerts.success.hod.-1.total*" | rex field=yourfield "(?P&amp;lt;field&amp;gt;[^\=]+)=(?P&amp;lt;value&amp;gt;.*)" | table field, value
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Aug 2012 11:27:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-multiple-fields-extraction-and-graph/m-p/25739#M4887</guid>
      <dc:creator>ayme</dc:creator>
      <dc:date>2012-08-06T11:27:58Z</dc:date>
    </item>
  </channel>
</rss>

