Skip to content

Instantly share code, notes, and snippets.

@brentroady
brentroady / logstash-grok-iis
Created August 6, 2014 16:05
Logstash Grok Pattern for a Default IIS 7.5 Log
%{TIMESTAMP_ISO8601:timestamp} %{IP:sourceip} %{WORD:method} %{URIPATH:uristem} (?:-|%{NOTSPACE:uriquery}) %{POSINT:port} (?:-|%{NOTSPACE:username}) %{IP:clientip} %{NOTSPACE:useragent} %{NUMBER:status} %{NUMBER:substatus} %{NUMBER:win32status} %{NUMBER:timetaken}
@brentroady
brentroady / stash-copies.sh
Created October 11, 2021 17:24
Copy stashes in all sub-folders into a destination folder
#! /bin/bash
copy-stashes() {
src=$1
dest=$2
current_directory=$(pwd)
cd $src
stashes=$(git stash list)