This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am weirded on github. | |
* I am stefanzier (https://keybase.io/stefanzier) on keybase. | |
* I have a public key ASDRr5KE1RIiEwtR3tSiS9N9-w6k6cVgbxFOE3uGr_IWHgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sumologic.bender.plugins.cmb | |
import java.net.URI | |
import akka.actor.ActorSystem | |
import com.atlassian.jira.rest.client.api.IssueRestClient | |
import com.atlassian.jira.rest.client.api.domain.Issue | |
import com.atlassian.jira.rest.client.auth.BasicHttpAuthenticationHandler | |
import com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory | |
import com.sumologic.sumobot.test.{MatchTextUtil, BotPluginTestKit, SumoBotSpec} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sumologic.bender.plugins.cmb | |
import java.text.DateFormat | |
import java.util.{Date, GregorianCalendar} | |
import akka.actor.{ActorLogging, Props} | |
import com.atlassian.jira.rest.client.api.domain.Issue | |
import com.atlassian.jira.rest.client.api.{IssueRestClient, RestClientException} | |
import com.sumologic.bender.plugins.jira.{BlockingJiraUserMapping, JiraClient, JiraUserMapping} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sumologic.util.scala.bench | |
import java.util.concurrent.atomic.{AtomicInteger, AtomicLong} | |
import com.netflix.config.scala.DynamicProperties | |
import com.sumologic.util.scala.env.Environment | |
import com.sumologic.util.scala.log.Logging | |
import com.sumologic.util.scala.rateLimiter.FixedRateLimiter | |
import com.sumologic.util.scala.time.{TimeConstants, TimeFormats, TimeSource} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error | |
| parse “ip=*, errorcode=*“ as ip, errorcode | |
| where errorcode=”failed_login” | |
| count by ip | |
| where _count > 1000 | |
| lookup ip from /my/whitelisted_ips on ip=ip | |
| if( isNull(ip), "unsafe", "safe") as ip_status | |
| where ip_status="unsafe" | |
| top 10 newip, ip by _count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error | |
| parse “ip=*, errorcode=*“ as ip, errorcode | |
| where errorcode=”failed_login” | |
| lookup ip from /my/whitelisted_ips on ip=ip | |
| if( isNull(ip), "unsafe", "safe") as ip_status | |
| where ip_status="unsafe" | |
| count by ip | |
| top 10 newip, ip by _count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error | |
| parse “ip=*, errorcode=*“ as ip, errorcode | |
| where errorcode=”failed_login” | |
| lookup ip from /my/whitelisted_ips on ip=ip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error | |
| parse “ip=*, errorcode=*“ as ip, errorcode | |
| lookup ip from /my/whitelisted_ips on ip=ip | |
| where errorcode=”failed_login” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
export INSTANCE_ID=`wget -q -O - http://169.254.169.254/latest/meta-data/instance-id` | |
export VOLUME_ID=v-12345678 | |
export EC2_URL=https://ec2.us-east-1.amazonaws.com | |
export EC2_ACCESS_KEY=[key id] | |
export EC2_SECRET_KEY=[key] | |
sudo apt-get install scrub | |
euca-attach-volume -i $INSTANCE_ID -d /dev/sdj $VOLUME_ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Testing. |
NewerOlder