-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syslog parser works with any time format #2886
Syslog parser works with any time format #2886
Commits on Mar 16, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c45e457 - Browse repository at this point
Copy the full SHA c45e457View commit details
Commits on Mar 17, 2020
-
split paring time and pri and others
Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 096805d - Browse repository at this point
Copy the full SHA 096805dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 325a5b9 - Browse repository at this point
Copy the full SHA 325a5b9View commit details -
total allocated object 1430 -> 1190 ``` require 'fluent/env' require 'fluent/engine' require_relative '../lib/fluent/plugin/parser_syslog' require 'memory_profiler' parser = Fluent::Plugin::SyslogParser.new parser.configure(Fluent::Config::Element.new('ROOT', '', { 'keep_time_key' => true }, [])) log = 'Feb 28 12:00:00 192.168.0.1 fluentd[11111]: [error] Syslog test' GC.start report = MemoryProfiler.report do parser.parse_rfc3164_regex(log) { |t, r| } end report.pretty_print ``` Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c6c6dd0 - Browse repository at this point
Copy the full SHA c6c6dd0View commit details -
Total allocated: 1190 -> 1070 bytes ``` require 'fluent/env' require 'fluent/engine' require_relative '../lib/fluent/plugin/parser_syslog' require 'memory_profiler' parser = Fluent::Plugin::SyslogParser.new parser.configure(Fluent::Config::Element.new('ROOT', '', { 'keep_time_key' => true }, [])) log = 'Feb 28 12:00:00 192.168.0.1 fluentd[11111]: [error] Syslog test' GC.start report = MemoryProfiler.report do parser.parse_rfc3164_regex(log) { |t, r| } end report.pretty_print ``` Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 09f5d11 - Browse repository at this point
Copy the full SHA 09f5d11View commit details -
squeeze must be invoke before time_parser.parse
Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for abbf77a - Browse repository at this point
Copy the full SHA abbf77aView commit details -
m.names returns always same result
so make it const to avoid string creation Total allocated 1030 -> 798 ``` require 'fluent/env' require 'fluent/engine' require_relative '../lib/fluent/plugin/parser_syslog' require 'memory_profiler' parser = Fluent::Plugin::SyslogParser.new parser.configure(Fluent::Config::Element.new('ROOT', '', { 'keep_time_key' => true }, [])) log = 'Feb 28 12:00:00 192.168.0.1 fluentd[11111]: [error] Syslog test' GC.start report = MemoryProfiler.report do parser.parse_rfc3164_regex(log) { |t, r| } end report.pretty_print ``` Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 86e67dc - Browse repository at this point
Copy the full SHA 86e67dcView commit details -
write directory to avoid string creation
Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8ed7dde - Browse repository at this point
Copy the full SHA 8ed7ddeView commit details -
Avoid to create MatachData object
Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2fb9979 - Browse repository at this point
Copy the full SHA 2fb9979View commit details
Commits on Mar 18, 2020
-
Use Regexp#names instead of write it as is
Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f000aa2 - Browse repository at this point
Copy the full SHA f000aa2View commit details -
remove useless insertion and deletion
Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5510b8f - Browse repository at this point
Copy the full SHA 5510b8fView commit details
Commits on Mar 23, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 8c6b8bd - Browse repository at this point
Copy the full SHA 8c6b8bdView commit details