<?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: How do you handle traffic spikes from servers? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-handle-traffic-spikes-from-servers/m-p/91010#M18921</link>
    <description>&lt;P&gt;I need to look into this. That sounds interesting. Unfortunately, a lot of my data comes from syslog direct to Splunk.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2011 21:03:02 GMT</pubDate>
    <dc:creator>twinspop</dc:creator>
    <dc:date>2011-04-28T21:03:02Z</dc:date>
    <item>
      <title>How do you handle traffic spikes from servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-handle-traffic-spikes-from-servers/m-p/91006#M18917</link>
      <description>&lt;P&gt;Our developers tend to use syslog, um, carelessly. For example, one server yesterday decided to send out 1000 identical msgs per second to let us know its DB instance was down. By the time it was taken care of, our license was busted on that indexer, again. Too many violations this month, so we're down hard.&lt;/P&gt;

&lt;P&gt;I'm thinking of crafting a scheduled search like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;startminutesago=60 | eval size=length(_raw)/(1024*1024) 
  | stats sum(size) as MB by HOST | where MB&amp;gt;50
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Based on that search, I'd like to set-up an alert script that would grab the offending servers' IPs, run "iptables -I INPUT 1 -s $IP -j DROP", and send out an email/snmp-trap that this has occurred.&lt;/P&gt;

&lt;P&gt;However, with a distributed environment this task grows a little in complexity. Schedule the search on every indexer? Or only on the search head, and then make the script capable of sending the iptables commands to the indexers? Neither solution seems ideal.&lt;/P&gt;

&lt;P&gt;So how do you deal with the occasional big spike in traffic? I'm trying to avoid manual intervention because we often get these spikes in the dead of night and I like to sleep.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 16:59:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-handle-traffic-spikes-from-servers/m-p/91006#M18917</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2011-04-28T16:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do you handle traffic spikes from servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-handle-traffic-spikes-from-servers/m-p/91007#M18918</link>
      <description>&lt;P&gt;"I'm trying to avoid manual intervention because we often get these spikes in the dead of night and I like to sleep."&lt;/P&gt;

&lt;P&gt;amen to that.  Even better is when a disk error occurs and spews 10 mil lines of logs in ~5 minutes.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 17:21:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-handle-traffic-spikes-from-servers/m-p/91007#M18918</guid>
      <dc:creator>netwrkr</dc:creator>
      <dc:date>2011-04-28T17:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do you handle traffic spikes from servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-handle-traffic-spikes-from-servers/m-p/91008#M18919</link>
      <description>&lt;P&gt;Before 4.2 it was messy. &lt;BR /&gt;
But, now that I have been using the Deployment app in 4.2 its been a breeze. I specifically use the  "Forwarders Sending More Data Than Expected" search with an alert set to fire when any forwarder hits 20% over of its "Average Daily KBps" .This search uses the &lt;CODE&gt;forwarder_metrics&lt;/CODE&gt; which seems to be pretty reliable.  I also have an alert set to fire if we hit 80% of our daily indexing license volume. This way I have the option to stop a forwarder or an indexer to prevent the license bust. At this time I am handling it manually.&lt;BR /&gt;
However, I could use "Run Script" action on the alerts to kick off a script to remotely stop the forwarder, indexer or any other appropriate action. &lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 17:26:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-handle-traffic-spikes-from-servers/m-p/91008#M18919</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2011-04-28T17:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do you handle traffic spikes from servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-handle-traffic-spikes-from-servers/m-p/91009#M18920</link>
      <description>&lt;P&gt;I would recommend using Splunk's internal metrics for this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=_internal source=*metrics* group=per_host_thruput | rename series as host | eval MB=kb/1024 | stats sum(MB) as MB by host&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Then save and schedule this search to run over your desired time window.  Set the alert to trigger when MB&amp;gt;50 and trigger a script.  The script will be responsible for taking the hosts identified by the search, running iptables, and sending an email/trap.&lt;/P&gt;

&lt;P&gt;You could have the Splunk alert handle the email part as well depending on the manner by which you want to notify.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 17:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-handle-traffic-spikes-from-servers/m-p/91009#M18920</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2011-04-28T17:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do you handle traffic spikes from servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-handle-traffic-spikes-from-servers/m-p/91010#M18921</link>
      <description>&lt;P&gt;I need to look into this. That sounds interesting. Unfortunately, a lot of my data comes from syslog direct to Splunk.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 21:03:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-handle-traffic-spikes-from-servers/m-p/91010#M18921</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2011-04-28T21:03:02Z</dc:date>
    </item>
  </channel>
</rss>

