-
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
Create tool that load dumped event #1165
Create tool that load dumped event #1165
Conversation
3191c5d
to
1386be4
Compare
1386be4
to
7beaa50
Compare
and remove unused OptionParser
c406518
to
dcd4408
Compare
dcd4408
to
82d394d
Compare
58b07c7
to
87cbed2
Compare
87cbed2
to
64f0cad
Compare
Commands of fluent-unpacker: | ||
cat : Read files sequentially, writing them to standard output. | ||
haed : Display the beginning of a text file. | ||
foramts : Display plugins that you can use. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
182495e
to
e186971
Compare
Done. |
count: -1 | ||
} | ||
|
||
def initialize(argv = ARGV) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nonsense def (just doing super
).
I added some minor comments. |
Add ensure to re-assignment of timezone. Remove unnecessary code.
2971639
to
9eda447
Compare
Hmm... if this tool focuses on binary format, |
looks good > |
@tagomoris @repeatedly Thank you for your help! |
Two directories for test formatter plugins are needed? |
|
||
if !@options[:plugin].empty? && (dir = @options[:plugin].find { |d| !Dir.exist?(d) }) | ||
usage "Directory #{dir} doesn't exist" | ||
elsif !@options[:plugin].empty? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check seems verbose.
if !@options[:plugin].empty?
if dir = @options[:plugin].find { |d| !Dir.exist?(d) }
usage "Directory #{dir} doesn't exist"
else
@options[:plugin].each do |d|
Fluent::Plugin.add_plugin_dir(d)
end
end
end
There are two tests The first one is a test when two directories are passed. |
@ganmacs Ah, I see. Got it. |
* fix verbose if condition * use Yajl instead of Oj
c7ede42
to
3c9e2a1
Compare
3c9e2a1
to
d128ec5
Compare
@tagomoris @repeatedly |
LGTM. |
fluent-binlog-reader
is a command line tool to read the data which is saved asMessage Pack
format.Usage of
fluent-binlog-reader
's Commandshead
head
is used to display the beginning of a text file.You can specify the number of events to display.
cat
cat
reads files sequentially, writing them to standard output.formats
formats
displays plugins that you can use.Global Options
--format
You can specify the
formatter
as shown below.Format params
formatter
has configurable params.(e.g.CsvFormatter
hasdelimiter
,force_quotes
, andfields
)You can pass these params by using
-e
option.--plugin
You can add new plugins path.
TODO
head
cat
formats