View gist:c57a1175f7bb9f3069c7a0bc0036e482
'use strict';
// Load modules
const Boom = require('boom');
const Hoek = require('hoek');
const Joi = require('joi');
// Declare internals
View gist:6672ad56e5dcf31801c6f1fbd948aa40
const request = { method: 'POST', url: '/', headers: { authorization: internals.header('john', '123:45') } };
server.inject(request, (res) => {
expect(res.result).to.equal('ok');
done();
});
View gist:4a500f1bbd84d57b0601417792ea275b
I, [2017-08-14T03:09:32.987205 #26197] INFO -- : Started GET "/voordeel_locaties/golfpark-spandersbosch" for 119.77.228.244 at 2017-08-14 03:09:32 +0000
I, [2017-08-14T03:09:32.988249 #26197] INFO -- : Processing by GreenLocationsController#show as HTML
I, [2017-08-14T03:09:32.988291 #26197] INFO -- : Parameters: {"id"=>"golfpark-spandersbosch"}
D, [2017-08-14T03:09:32.988398 #26197] DEBUG -- : Geokit is using the domain: codegreenit.com
D, [2017-08-14T03:09:32.990838 #26197] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`sane_name` = 'golfpark-spandersbosch' LIMIT 1
D, [2017-08-14T03:09:32.991733 #26197] DEBUG -- : GreenLocation Load (0.3ms) SELECT `green_locations`.* FROM `green_locations` WHERE `green_locations`.`location_id` = 134 LIMIT 1
D, [2017-08-14T03:09:32.992762 #26197] DEBUG -- : Attachment Load (0.2ms) SELECT `attachments`.* FROM `attachments` WHERE `attachments`.`attachable_id` = 134 AND `attachments`.`attachable_type` = 'Location'
View gist:5cbc8e3f267084e278ded2385aa6673e
%{IPORHOST:s_ip} ?(%{IPORHOST:c_ip}|%{NOTSPACE:c_ip}) %{NOTSPACE:remote_logname} %{NOTSPACE:remote_user} \[%{MONTHDAY:day}/%{MONTH:month}/%{YEAR:year}:%{HOUR:hour}:%{MINUTE:minute}:%{SECOND:second} %{ISO8601_TIMEZONE:timezone}\] %{WORD:request} %{NOTSPACE:file_path} ?(%{NOTSPACE:http_version}| ) %{WORD:status} %{INT:bytes} %{NOTSPACE:referer} %{GREEDYDATA:user_agent} %{NOTSPACE:data} %{BASE16FLOAT:time_taken}
View gist:d56cc051d8bffc2f3c93e3ecd103d044
https://download.elasticsearch.org/kibana/kibana/kibana-4.6.1-x86_64.rpm
View gist:00e9601ab56db92d9b629dd6d9a615f2
output {
if [type] == "apache" {
if [status] =~ /^5\d\d/ {
nagios { ... }
} else if [status] =~ /^4\d\d/ {
elasticsearch { ... }
}
statsd { increment => "apache.%{status}" }
}
}
View gist:06c757125cc420c0d94ec1fa08a7205f
[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}
View axa-error-log.conf
input {
file {
path => [ "/diskZ/elklog/axa/ssm*/error_log*" ]
start_position => beginning
type => "axa-apache-error"
sincedb_path => "/dev/null"
ignore_older => 0
}
}
View gist:335ccd66deafd809d2dbde8fbd41f6c7
[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!
View gist:632920ef88abe19e67d964acb862d5e9
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 <?>