<?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: n00b log file parsing question in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/n00b-log-file-parsing-question/m-p/89698#M12281</link>
    <description>&lt;P&gt;By default, Splunk only finds key-value pairs with an equal sign. If your data had&lt;/P&gt;

&lt;P&gt;Duration=31&lt;/P&gt;

&lt;P&gt;Then Splunk would automatically extract the duration field. But, as sdaniels suggested, you can use the Interactive Field Extractor to create a field, and then use the search as suggested.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jul 2012 20:00:32 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-07-03T20:00:32Z</dc:date>
    <item>
      <title>n00b log file parsing question</title>
      <link>https://community.splunk.com/t5/Alerting/n00b-log-file-parsing-question/m-p/89694#M12277</link>
      <description>&lt;P&gt;I searched the Answers and the boards, but not effectively.  I am trying to have splunk alert when days are greater than 20 days after "Duraton:" below:&lt;/P&gt;

&lt;P&gt;2012-07-03 12:43:36,996 DEBUG &lt;TP-PROCESSOR6&gt; [SessionManager] Session is: SESSION ID:NET\riquez1@cn=2bbeecf-49e5-9112-b787178c710a,RDP:0 Username:net\riquez START_TIME:Mon Jul 02 08:01:23 CDT 2012 STATE:CONNECTED PROTOCOL:RDP Duration:31 day 4 hours 42 minutes S-1-5-21-776561741-1390067357-839522115-53455] ConnectionId:7574376A4FE72E03C03D1167E44 SecurityServerName:null User SID:S-1-5-21-776561741&lt;/TP-PROCESSOR6&gt;&lt;/P&gt;

&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2012 17:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/n00b-log-file-parsing-question/m-p/89694#M12277</guid>
      <dc:creator>jaywv6299</dc:creator>
      <dc:date>2012-07-03T17:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: n00b log file parsing question</title>
      <link>https://community.splunk.com/t5/Alerting/n00b-log-file-parsing-question/m-p/89695#M12278</link>
      <description>&lt;P&gt;Splunk should automatically give you a field for Duration since it's a key value pair with a semi-colon separating it.  Do you see this in the field discovery on the bottom left of the search screen?&lt;/P&gt;

&lt;P&gt;Then create a search like this sourcetype=something | where Duration &amp;gt; 20.   With that you can now create an alert for this condition.  Depending on how often this occurs you'll want to choose a timeframe for your alert.  Is it over the last month, week, day, hour etc, but that is configurable.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2012 18:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/n00b-log-file-parsing-question/m-p/89695#M12278</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-07-03T18:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: n00b log file parsing question</title>
      <link>https://community.splunk.com/t5/Alerting/n00b-log-file-parsing-question/m-p/89696#M12279</link>
      <description>&lt;P&gt;I do not see it as a key value.  But if it did, wouldn't it be everything after the :, I only want to do Duration &amp;gt; 20, but it would have days, hours, etc after it.&lt;/P&gt;

&lt;P&gt;How do I extract the entry so it is only "31" so I can perform the gt action?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2012 18:06:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/n00b-log-file-parsing-question/m-p/89696#M12279</guid>
      <dc:creator>jaywv6299</dc:creator>
      <dc:date>2012-07-03T18:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: n00b log file parsing question</title>
      <link>https://community.splunk.com/t5/Alerting/n00b-log-file-parsing-question/m-p/89697#M12280</link>
      <description>&lt;P&gt;To keep it simple use the field extractor.   See link below, it will generate the regex for you.  Enter several values like 31 etc from the raw events... and put them on seperate lines and then generate the regex, call the field what you want.  Then perform the search using the new field. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/User/InteractiveFieldExtractionExample"&gt;http://docs.splunk.com/Documentation/Splunk/latest/User/InteractiveFieldExtractionExample&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2012 18:10:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/n00b-log-file-parsing-question/m-p/89697#M12280</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-07-03T18:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: n00b log file parsing question</title>
      <link>https://community.splunk.com/t5/Alerting/n00b-log-file-parsing-question/m-p/89698#M12281</link>
      <description>&lt;P&gt;By default, Splunk only finds key-value pairs with an equal sign. If your data had&lt;/P&gt;

&lt;P&gt;Duration=31&lt;/P&gt;

&lt;P&gt;Then Splunk would automatically extract the duration field. But, as sdaniels suggested, you can use the Interactive Field Extractor to create a field, and then use the search as suggested.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2012 20:00:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/n00b-log-file-parsing-question/m-p/89698#M12281</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-07-03T20:00:32Z</dc:date>
    </item>
  </channel>
</rss>

