This file contains hidden or 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 | |
firstOctetinRange=9 | |
secondOctet=253 | |
foundIP=0 | |
for i in $ovpn_ip | |
do | |
ovpn_octet=$(echo $i | cut -f 4 -d .) | |
if [[ 10.${secondOctet}.0.${ovpn_octet} = 10.${secondOctet}.0.${firstOctetinRange} && $foundIP = 0 ]]; then | |
echo "$i is taken, trying the next IP" |
This file contains hidden or 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
127.0.0.1 r1---sn-cvh7knez.googlevideo.com | |
127.0.0.1 r2---sn-cvh7knez.googlevideo.com | |
127.0.0.1 r3---sn-cvh7knez.googlevideo.com | |
127.0.0.1 r4---sn-cvh7knes.googlevideo.com | |
127.0.0.1 r5---sn-cvh7knez.googlevideo.com | |
127.0.0.1 r6---sn-cvh7knez.googlevideo.com | |
127.0.0.1 r7---sn-cvh7knez.googlevideo.com | |
127.0.0.1 r8---sn-cvh7knez.googlevideo.com | |
127.0.0.1 r9---sn-cvh7knez.googlevideo.com | |
127.0.0.1 r10---sn-cvh7knez.googlevideo.com |
This file contains hidden or 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
{ | |
"order": 0, | |
"template": "neo4j_logs-*", | |
"settings": {}, | |
"mappings": { | |
"neo4j_logs": { | |
"properties": { | |
"@timestamp": { | |
"type": "date" | |
}, |
This file contains hidden or 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
if [type] == "neo4j_logs" { | |
if [source] == "/var/log/neo4j/query.log" { | |
grok { | |
match => ["message", "%{TIMESTAMP_ISO8601:datetime} %{WORD:severity} +%{NUMBER:ms} ms: %{NOTSPACE:session-type} %{WORD:protocol} %{WORD:remoteUser} %{NOTSPACE:driver}/(\[)?%{DATA:driver-version}(\])? client/%{IP:clientip}:%{NUMBER:clientport} server/%{IP:serverip}:%{NUMBER:serverport}> %{WORD:remoteUser} - %{GREEDYDATA:query} - (%{GREEDYDATA:parameters})? - {}"] | |
match => ["message", "%{TIMESTAMP_ISO8601:datetime} %{WORD:severity} +%{NUMBER:ms} ms: %{NOTSPACE:session-type} %{WORD:protocol} %{IP:clientip} %{GREEDYDATA:endpoint} %{WORD:remoteUser} - %{GREEDYDATA:query} - (%{GREEDYDATA:parameters})? - {}"] | |
} | |
} | |
} |
This file contains hidden or 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
#Param needs to be either 'up' or 'down' | |
#scaleSize is optional if you know EXACTLY the name of the VM size you want | |
param( | |
[Parameter(Mandatory = $true)] | |
[String] $scale, | |
[Parameter(Mandatory = $false)] | |
[String] $scaleSize | |
) | |
$subscrip = "SUBSCRIPTIONNAME" |
This file contains hidden or 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
{ | |
"trigger": { | |
"schedule": { | |
"interval": "60s" | |
} | |
}, | |
"input": { | |
"search": { | |
"request": { | |
"indices": ["indexname-*"], |
This file contains hidden or 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
%{TIMESTAMP_ISO8601:timestamp} %{WORD:severity} \[%{DATA:category}\] %{GREEDYDATA:message} |
This file contains hidden or 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
{ | |
"template": "network-*", | |
"settings": { | |
"index": { | |
"refresh_interval": "5s" | |
} | |
}, | |
"mappings": { | |
"network": { | |
"dynamic_templates": [{ |
This file contains hidden or 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
{ | |
"trigger": { | |
"schedule": { | |
"interval": "60s" | |
} | |
}, | |
"input": { | |
"search": { | |
"request": { | |
"indices": [ |
This file contains hidden or 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
\<%{POSINT:pid}\>%{SYSLOGTIMESTAMP:syslog_timestamp} %{IPORHOST:syslog_server}\[%{SYSLOGPROG}\]: %{IP:client_ip}:%{NUMBER:client_port} \[%{HAPROXYDATE:accept_date}\] %{NOTSPACE:frontend_name} %{NOTSPACE:backend_name}/%{NOTSPACE:server_name} %{NUMBER:time_request}/%{NUMBER:time_queue}/%{NUMBER:time_backend_connect}/%{NUMBER:time_backend_response}/%{NOTSPACE:time_duration} %{NUMBER:http_status_code} %{NOTSPACE:bytes_read} %{DATA:captured_request_cookie} %{DATA:captured_response_cookie} %{NOTSPACE:termination_state} %{NUMBER:actconn}/%{NUMBER:feconn}/%{NUMBER:beconn}/%{NUMBER:srvconn}/%{NOTSPACE:retries} %{NUMBER:srv_queue}/%{NUMBER:backend_queue} (\{%{HAPROXYCAPTUREDREQUESTHEADERS}\})?( )?(\{%{HAPROXYCAPTUREDRESPONSEHEADERS}\})?( )?\"%{WORD:http_verb} %{URIPATHPARAM:http_request}( HTTP/%{NUMBER:http_version}\")? |
NewerOlder