chunk-inspector

command module
v0.0.0-...-a9db94b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

README

Chunk Inspector

This is a basic tool to handle Fluent Bit's flb (chunk) files.

Usage

These are the subcommands currently supported:

check

It will check for corrupted/invalid flb files.

Usage of check:
  -dir string
        Directory containing the file(s) to process (default ".")
  -file string
        File to be processed
  -v    Activates verbose mode
$ chunk-inspector check
Filename 1-1642796665.47813680.flb OK
Filename 1-1642796694.873134717.flb Corrupted
$ chunk-inspector check -v    
Filename 1-1642796665.47813680.flb 
File size: 660 bytes
2 bytes from header: �
4 bytes from CRC: 
16 bytes read from Padding: 
Metadata Length: 122
OK
Filename 1-1642796694.873134717.flb 
File size: 24 bytes
Corrupted
dump

It will dump the user content of the flb file to the output file.

Usage of dump:
  -file string
        Flb file to be dumped.
  -out string
        Output file. (default "dump.out")

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL