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
var fs = require('fs'); | |
var crypto = require('crypto'); | |
function randomValueBase64 (len) { | |
return crypto.randomBytes(Math.ceil(len * 3 / 4)) | |
.toString('base64') // convert to base64 format | |
.slice(0, len) // return required number of characters | |
.replace(/\+/g, '0') // replace '+' with '0' | |
.replace(/\//g, '0'); // replace '/' with '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
[ | |
{ | |
"username": "selliott", | |
"firstName": "Steve", | |
"lastName": "Elliott", | |
"email": "[email protected]", | |
"password": "fgtdfgjgertu", | |
"javaClass": "com.untangle.uvm.LocalDirectoryUser", | |
"expirationTime": 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
[ | |
{ | |
"username": "selliott", | |
"firstName": "Steve", | |
"lastName": "Elliott", | |
"email": "[email protected]", | |
"password": "fgtdfgjgertu" | |
} | |
] |
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
var fs = require('fs'); | |
var crypto = require('crypto'); | |
function randomValueBase64 (len) { | |
return crypto.randomBytes(Math.ceil(len * 3 / 4)) | |
.toString('base64') // convert to base64 format | |
.slice(0, len) // return required number of characters | |
.replace(/\+/g, '0') // replace '+' with '0' | |
.replace(/\//g, '0'); // replace '/' with '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
filter { | |
translate { | |
regex => true | |
field => "url_page" | |
destination => "url_page_type" | |
fallback => "unknown" | |
dictionary => [ | |
"\/((k[0-9]+_[a-zA-Z0-9\-\%'()]*)|(r[0-9]+_hotel[a-zA-Z0-9\-\%'()]*)|((H|h)otels(-p[0-9]+)?)|(AjaxSearch|Mobile(Ajax|Search)))\.aspx$", "search" | |
] | |
} |
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
filter { | |
grok { match => [ "url", "%{URIPATH:url_path}%{URIPARAM:url_querystring}?" ] } | |
} |
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
filter { | |
grok { | |
match => [ "url_path", "^(?:\/(?<url_language>en|de|es|it|fr))?(?:\/p(?<url_partner>[0-9]+))?(?:\/pv(?<url_partner_value>[0-9a-zA-Z]+))?(?<url_page>.*)$" ] | |
} | |
} |
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
if [url_path] =~ /^\/status$/ { | |
mutate { add_tag => "health-check" } | |
} else if [url_path] =~ /^\/beacon\// { | |
mutate { add_tag => "beacon" } | |
} else { | |
mutate { add_tag => "content" } | |
} |
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
logstash: | |
image: pblittle/docker-logstash | |
volumes: | |
- ./logstash-config:/opt/logstash/conf.d/ | |
- /var/log/logstash:/var/log/logstash | |
- ./geoip:/opt/logstash/vendor/geoip/ | |
- ./ssl:/opt/ssl/ |
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
FROM logstash:1.5.3 | |
RUN /opt/logstash/bin/plugin install logstash-filter-translate | |
RUN /opt/logstash/bin/plugin install logstash-filter-json_encode |
OlderNewer