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
output { | |
if [type] == "apache" { | |
if [status] =~ /^5\d\d/ { | |
nagios { ... } | |
} else if [status] =~ /^4\d\d/ { | |
elasticsearch { ... } | |
} | |
statsd { increment => "apache.%{status}" } | |
} | |
} |
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
[Wed Nov 23 14:54:49 2016] [error] [client 61.148.244.54] (70007)The timeout specified has expired: proxy: error reading status line from remote server 84.239.199.210 | |
[Sun Dec 04 03:42:01.878346 2016] [mpm_prefork:notice] [pid 30011] AH00171: Graceful restart requested, doing restart\nAH00557: httpd: apr_sockaddr_info_get() failed for NOVPLLOG01\nAH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message | |
[Wed Nov 23 15:06:13 2016] [notice] mpmstats: bsy: 3 in mod_proxy.c | |
\[%{DAY} (?<timestamp>%{MONTH} %{MONTHDAY} %{TIME} %{YEAR})\] \[(?:%{WORD:logtarget}\:){0,1}%{LOGLEVEL:loglevel}\] (?:\[pid %{NUMBER:pid}\] ){0,1}(?:\[client %{IP:clientip}\] ){0,1}%{GREEDYDATA:errormsg} |
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
input { | |
file { | |
path => [ "/diskZ/elklog/axa/ssm*/error_log*" ] | |
start_position => beginning | |
type => "axa-apache-error" | |
sincedb_path => "/dev/null" | |
ignore_older => 0 | |
} | |
} |
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
[mwang@ELKServer02-tw elasticsearch]$ ls | |
elasticsearch.yml logging.yml scripts | |
[mwang@ELKServer02-tw elasticsearch]$ vi elasticsearch.yml | |
[mwang@ELKServer02-tw elasticsearch]$ cat *yml | |
index.number_of_shards: 3 | |
index.number_of_replicas: 1 | |
threadpool.search.queue_size: 10000 | |
network.host: 0.0.0.0 | |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
# THIS FILE IS MANAGED BY CHEF, DO NOT EDIT MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN! |
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
mwang@es2 ξ° ~/amdgpu-pro-16.40-348864 ξ° sudo lspci -v -s 01:00.0 | |
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tonga PRO [Radeon R9 285/380] (rev f1) (prog-if 00 [VGA controller]) | |
Subsystem: Tul Corporation / PowerColor Tonga PRO [Radeon R9 285/380] | |
Flags: bus master, fast devsel, latency 0, IRQ 26 | |
Memory at d0000000 (64-bit, prefetchable) [size=256M] | |
Memory at cfe00000 (64-bit, prefetchable) [size=2M] | |
I/O ports at d000 [size=256] | |
Memory at feac0000 (32-bit, non-prefetchable) [size=256K] | |
Expansion ROM at feaa0000 [disabled] [size=128K] | |
Capabilities: [48] Vendor Specific Information: Len=08 <?> |
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
http://www.thegeekstuff.com/2011/06/iptables-rules-examples/ |
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
β keycloak cat /etc/*release | |
CentOS release 6.7 (Final) | |
CentOS release 6.7 (Final) | |
CentOS release 6.7 (Final) | |
β keycloak rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied) | |
β keycloak | |
β keycloak sudo !! | |
β keycloak sudo rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm |
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
<ROOT> | |
<source> | |
type syslog | |
port 5140 | |
tag system | |
</source> | |
<match system.*.*> | |
type record_reformer | |
tag elasticsearch | |
facility ${tag_parts[1]} |
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
geth -rpc --rpcport 8100 --solc /disk1/home/mwang/src/webthree-umbrella/build/solidity/solc/solc |
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
go get github.com/ethereum/ethash | |
go get github.com/ethereum/go-ethereum/common | |
go get github.com/goji/httpauth | |
go get github.com/gorilla/mux | |
go get github.com/yvasiyarov/gorelic | |
git clone https://github.com/mingder78/ether-proxy.git |