mkdir -p fluentdCA/{private,newcerts,certs,crl}
touch fluentdCA/index.txt
echo 00 > fluentdCA/serial
ruby 2.3.5p376 (2017-09-14 revision 59905) [x86_64-linux]
built-in mem: 178476 duration: 5.132209188
jemalloc 3.0.0 mem: 176224 duration: 4.000590038
jemalloc 3.1.0 mem: 176228 duration: 3.905287789
jemalloc 3.2.0 mem: 181496 duration: 3.884209287
jemalloc 3.3.0 mem: 181512 duration: 3.993662677
jemalloc 3.3.1 mem: 183572 duration: 3.883753324
jemalloc 3.4.0 mem: 181564 duration: 3.92800123
jemalloc 3.4.1 mem: 181500 duration: 3.842475057
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
require 'benchmark' | |
class Test0 | |
def initialize(key) | |
@key = key | |
end | |
def call(record) | |
record[@key] | |
end |
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
<source> | |
@type http | |
port 8888 | |
</source> | |
<match test.**> | |
@type flowcounter_simple | |
</match> |
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
<source> | |
@type tail | |
path in/*.log | |
path_key tailed_path | |
read_from_head true | |
tag logs.tail | |
<parse> | |
@type none | |
</parse> |
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
# encoding: UTF-8 | |
require 'date' | |
require 'excon' | |
require 'elasticsearch' | |
require 'uri' | |
begin | |
require 'strptime' | |
rescue LoadError | |
end |
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
# Result | |
#valid | |
#{"k"=>"vvv"} | |
#{"k"=>"vvv"} | |
#{"k"=>"vvv"} | |
#invalid utf-8 with US-ASCII | |
#{"k"=>"v\xFFvv"} | |
#{"k"=>"v\xFFvv"} | |
#"Yajl: error: lexical error: invalid bytes in UTF8 string.\n # {\"k\":\"v\xFFvv\"}\n (right here) ------^\n" |
NewerOlder