<?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: Tracking exchange white space values over time (parsing values in message from event 1221) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45413#M8504</link>
    <description>&lt;P&gt;I guess I'd like to dedup on the Datastore, so there's only one entry for datastore 'NWRK\MB1'.  I tried somethings like:&lt;/P&gt;

&lt;P&gt;| rex "The database (?&lt;DATABASE&gt;.*)" | dedup (database) | &lt;/DATABASE&gt;&lt;/P&gt;

&lt;P&gt;but that didn't seem to work.&lt;/P&gt;

&lt;P&gt;Thanks for the reply.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2011 05:06:39 GMT</pubDate>
    <dc:creator>jayrodef</dc:creator>
    <dc:date>2011-02-16T05:06:39Z</dc:date>
    <item>
      <title>Tracking exchange white space values over time (parsing values in message from event 1221)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45411#M8502</link>
      <description>&lt;P&gt;Hello,
I'm new to Splunk and I'm using it to track several things that are looking really good.  One thing I was curious to get working is a search to track the white white space by datastore on our exchange server.  Here's an example of one of the events:&lt;/P&gt;

&lt;P&gt;20110215060000.000000
Category=6
CategoryString=General
ComputerName=EXSVR01
EventCode=1221
EventIdentifier=1074136261
EventType=3
Logfile=Application
RecordNumber=2444633
SourceName=MSExchangeIS Mailbox Store
TimeGenerated=20110215060000.000000-300
TimeWritten=20110215060000.000000-300
Type=Information
User=NULL
wmi_type=WinEventLog:Application
Message=The database "NWRK\MB1" has 475 megabytes of free space after online defragmentation has terminated.&lt;/P&gt;

&lt;P&gt;For more information, click &lt;A href="http://www.microsoft.com/contentredirect.asp" rel="nofollow"&gt;http://www.microsoft.com/contentredirect.asp&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;So in the Message area, I'd like to extract the database (NWRK\MB1) and the 475 value for megabytes.  Sometimes I get multiple events for the same database in one day, so I'd need to ensure the values are distinct per database and track it over time.  This is the search I had so far, and it tells me the total across all databases for the day, however it doesn't filter out the duplicate entries:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="WMI:WinEventLog:Application" EventCode="1221" host="EXSVR01" | rex "has (?&amp;lt;mbs&amp;gt;\d+) megabytes of free" | timechart per_day(mbs)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas would be greatly appreciated, thanks so much!&lt;/P&gt;

&lt;P&gt;Regards,
Jared&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2011 04:47:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45411#M8502</guid>
      <dc:creator>jayrodef</dc:creator>
      <dc:date>2011-02-16T04:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking exchange white space values over time (parsing values in message from event 1221)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45412#M8503</link>
      <description>&lt;P&gt;How do you determine a duplicate entry?  By the EventIdentifier?  Host?  Use dedup to remove the duplicate values:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | dedup EventIdentifier | timechart ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Feb 2011 04:55:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45412#M8503</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-16T04:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking exchange white space values over time (parsing values in message from event 1221)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45413#M8504</link>
      <description>&lt;P&gt;I guess I'd like to dedup on the Datastore, so there's only one entry for datastore 'NWRK\MB1'.  I tried somethings like:&lt;/P&gt;

&lt;P&gt;| rex "The database (?&lt;DATABASE&gt;.*)" | dedup (database) | &lt;/DATABASE&gt;&lt;/P&gt;

&lt;P&gt;but that didn't seem to work.&lt;/P&gt;

&lt;P&gt;Thanks for the reply.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2011 05:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45413#M8504</guid>
      <dc:creator>jayrodef</dc:creator>
      <dc:date>2011-02-16T05:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking exchange white space values over time (parsing values in message from event 1221)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45414#M8505</link>
      <description>&lt;P&gt;What I gather you're looking to do is track your free exchange database space over time, per database. What I do for this report is run the following search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SearchCriteria | rex field=_raw "The database \"(?&amp;lt;EXDB&amp;gt;.*?)\" has (?&amp;lt;FreeMB&amp;gt;\d*) megabytes of free" 
               | timechart last(FreeMB) by EXDB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Doing a timechart last(FreeMB) You need to provide some function for Timechart to run on FreeMB, in the event it has to summarize. (E.g., if you were running it over the last 7 days, it wouldn't summarize at all. But if you were running it over 2 years, it would probably summarize it into months, or two month periods, or what have you.) Depending on your needs, you might want to go with avg() or min() or max() -- last() just shows the most recent event, which is fine since I run this report over a relatively small period of time, and I have a pretty small amount of change in my databases. &lt;/P&gt;

&lt;P&gt;Notably, with this approach, it doesn't matter how many events you get per day. It will automatically summarize the number of events per database, and only show you a single value.&lt;/P&gt;

&lt;P&gt;Does that all make sense?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2011 05:44:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45414#M8505</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2011-02-16T05:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking exchange white space values over time (parsing values in message from event 1221)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45415#M8506</link>
      <description>&lt;P&gt;Awesome, that works great, I think I'm still getting the sum of duplicate entries (i.e if there are two events for "NWRK\MB1" database), however I'll try to work through that, thanks for the help.&lt;/P&gt;

&lt;P&gt;Jared&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2011 06:03:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45415#M8506</guid>
      <dc:creator>jayrodef</dc:creator>
      <dc:date>2011-02-16T06:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking exchange white space values over time (parsing values in message from event 1221)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45416#M8507</link>
      <description>&lt;P&gt;if you use &lt;CODE&gt;timechart span=1d first(FreeMB) by EXDB&lt;/CODE&gt;, it will only select the first (i.e. most recent) value of FreeMB it encounters for each distinct EXDB value.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2011 06:15:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45416#M8507</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-16T06:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking exchange white space values over time (parsing values in message from event 1221)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45417#M8508</link>
      <description>&lt;P&gt;You should only get one entry per time period, per host. Maybe some events have the database name capitalized or not? If that's the case, then you could add an &lt;BR /&gt;
| eval EXDB = upper(EXDB)&lt;BR /&gt;
before the timechart. &lt;/P&gt;

&lt;P&gt;If I'm misreading and you only want a single value overall (e.g., "the most recent free space"), you could always replace the timechart with just &lt;BR /&gt;
| stats last(FreeMB) by EXDB &lt;BR /&gt;
(or avg(), etc.) That would summarize all the values to one number per EXDB, but wouldn't let you see trends.&lt;/P&gt;

&lt;P&gt;If you're still seeing duplicates, you can paste the results and the query, and I can take a look.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2011 06:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45417#M8508</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2011-02-16T06:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking exchange white space values over time (parsing values in message from event 1221)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45418#M8509</link>
      <description>&lt;P&gt;Ah, I was flipping first and last. Good to know.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2011 06:19:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tracking-exchange-white-space-values-over-time-parsing-values-in/m-p/45418#M8509</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2011-02-16T06:19:33Z</dc:date>
    </item>
  </channel>
</rss>

