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
xswp0001:~/bin # cat sles-updates | |
#!/bin/sh | |
MAIL_TO="[email protected]" | |
ZYP=/usr/bin/zypper | |
HOSTNAME="(`hostname`)" | |
if [ "$1" != "mail" ]; then |
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
/usr/sbin/logwatch --service iptables --service named --service sshd --detail med --range yesterday --output mail --format html |
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
Here are all the classes from Bootstrap 3 (version 3.1.1). | |
Method of extraction: | |
1. Download Bootstrap 3 and rename bootstrap.css as "bootstrap.html" | |
2. Add the following 24 lines of code to the very bottom of the bootstrap.html file: | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script> | |
<script> |
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
input { | |
file { | |
type => "WASSystemOut" | |
start_position => "beginning" | |
# path => ["/var/log/secure", "/var/log/messages"] | |
# exclude => ["*.gz"] | |
path => ["/waslogs/SystemOut*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
input { | |
## | |
## how to feed into this input: "cat /tmp/logstash.input | pv -l -L 10000 | nc localhost 33333" | |
## | |
tcp { type => "tcp" port => 33333 } | |
} | |
filter { | |
metrics { |
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
input { | |
file { | |
type => "apache" | |
start_position => "beginning" | |
# path => ["/var/log/secure", "/var/log/messages"] | |
path => ["/var/log/access.log.201*"] | |
exclude => ["*.gz"] | |
} | |
} |
NewerOlder