Skip to content

Add an example with fromSample importing a json file #33

@mcelestini

Description

@mcelestini

I'm trying to use gogen to replay json logs but I'm having difficulty using fromSample with json. Everytime I run my config I get ERROR Disabling sample 'test', no lines in sample. I get the same output even when I use a json file with just the line from template_test.go: {"_raw":"foo","host":"barhost","index":"fooindex"}. Not sure what fromSample is looking for when in a json file, can you help?

Thanks for your time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions