ew lines in the
files.
=item *
Pipe the perl process output into stdin of fluent-bit, as either JSON or parsed plaintext.
=item *
Use this module to feed data directly into fluent-bit within the s
our $VERSION = '0.03'; # VERSION
use strict;
use warnings;
use Carp;
use Time::HiRes 'time';
use JSON::MaybeXS;
# ABSTRACT: Perl-style logger object that logs to the 'lib' input of fluent-bit
sub
$data->{line}= $line;
}
my $code= $self->{context}->flb_lib_push($self->{input_id}, encode_json([ time, $data ]));
$code >= 0 or croak "flb_lib_push failed: $code";
return $self;
}
sub t