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
| { | |
| "title": "CollectD", | |
| "services": { | |
| "query": { | |
| "list": { | |
| "0": { | |
| "query": "*", | |
| "alias": "", | |
| "color": "#7EB26D", | |
| "id": 0, |
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
| [INFO ] salt-cloud starting | |
| [WARNING ] Failed to import cloud vsphere, this is due most likely to a syntax error. Traceback raised: | |
| Traceback (most recent call last): | |
| File "/usr/lib/pymodules/python2.7/salt/loader.py", line 707, in gen_functions | |
| ), fn_, path, desc | |
| File "/usr/lib/pymodules/python2.7/salt/cloud/clouds/vsphere.py", line 5 | |
| <!DOCTYPE html> | |
| ^ | |
| SyntaxError: invalid syntax | |
| [WARNING ] The cloud driver, 'vsphere', configured under the 'my-vsphere-vcsa' cloud provider alias was not loaded since 'vsphere.get_configured_provider()' could not be found. Removing it from the available providers list |
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 | |
| # check for iptables-persistent package and install if not already installed | |
| script_name="iptablesrules.sh" | |
| # change user to the account you wish to use on the remote nodes | |
| user="root" | |
| tee $script_name <<EOF | |
| if apt-get -qq install iptables-persistent; then | |
| echo "Successfully detected iptables-persistent" | |
| else |
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
| # Bro-IDS Logstash parser | |
| # Parts of this taken from http://www.appliednsm.com/wp-content/uploads/logstash-SObro22-parse.conf_.txt | |
| #Logs being parsed: | |
| #app_stats.log | |
| #conn.log | |
| #dns.log | |
| #dpd.log | |
| #files.log | |
| #http.log |
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
| filter { | |
| if "syslog" in [tags] { | |
| grok { | |
| match => [ | |
| "message", "<%{POSINT}>%{SYSLOGTIMESTAMP} %{SYSLOGHOST:syslog_host_id} %{GREEDYDATA}" | |
| ] | |
| } | |
| if [syslog_host_id] =~ /.*?(nsvpx).*?(everythingshouldbevirtual.local)?/ { | |
| mutate { | |
| add_tag => [ "Netscaler" ] |
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
| # Setting up PFsense Firewall parsing | |
| filter { | |
| if "PFSense" in [tags] { | |
| mutate { | |
| add_tag => [ "firewall" ] | |
| } | |
| grok { | |
| match => [ | |
| "message", "<%{POSINT:syslog_pri}>%{SYSLOGBASE} %{NOTSPACE} %{GREEDYDATA:pfsense_message}", | |
| "message", "<%{POSINT:syslog_pri}>%{SYSLOGBASE} %{GREEDYDATA:pfsense_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
| # Cisco ASA | |
| filter { | |
| if "syslog" in [tags] and "pre-processed" not in [tags] { | |
| if "%ASA-" in [message] { | |
| mutate { | |
| add_tag => [ "pre-processed", "Firewall", "ASA" ] | |
| } | |
| grok { | |
| match => [ | |
| "message", "<%{POSINT:syslog_pri}>%{CISCOTIMESTAMP:timestamp} %{SYSLOGHOST:sysloghost} %%{CISCOTAG:cisco_tag}: %{GREEDYDATA:cisco_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
| #!/bin/bash | |
| # This is for Ubuntu | |
| apt-get install xinetd | |
| ( | |
| cat << 'EOF' | |
| # default: on | |
| # description: mysqlchk | |
| service mysqlchk | |
| { |
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
| { | |
| "title": "Cisco ASA", | |
| "services": { | |
| "query": { | |
| "list": { | |
| "0": { | |
| "query": "*", | |
| "alias": "", | |
| "color": "#7EB26D", | |
| "id": 0, |
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
| "orig_message", "snort\[%{INT:snort_pid}\]\:.*\[%{INT:ids_gid}\:%{INT:ids_sid}\:%{INT:ids_rev}\].%{GREEDYDATA:ids_alert}.\[Classification\: %{DATA:ids_classification}\].*\[Priority\: %{INT:ids_priority}].*{%{WORD:ids_proto}}.*%{IP:src_ip}:%{INT:src_port} \-\>.*%{IP:dst_ip}:%{INT:dst_port}", | |
| "orig_message", "snort\[%{INT:snort_pid}\]\:.*\[%{INT:ids_gid}\:%{INT:ids_sid}\:%{INT:ids_rev}\].%{GREEDYDATA:ids_alert}.\[Classification\: %{DATA:ids_classification}\].*\[Priority\: %{INT:ids_priority}].*\{PROTO:%{WORD:ids_proto}.*%{IP:src_ip} \-\>.*%{IP:dst_ip}" |