Skip to content
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

Support ingesting json as produced by JsonFormatter #142

Open
penenkel opened this issue Aug 8, 2020 · 2 comments
Open

Support ingesting json as produced by JsonFormatter #142

penenkel opened this issue Aug 8, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@penenkel
Copy link

penenkel commented Aug 8, 2020

As the title states: I recently had to ingest some log files written by the (old) JsonFormatter. But apparently that is not a supported scenario yet. I think such a feature would be worthwhile.

As a side note: Naming the ingestion argument --json seems bit misleading to me, as the data must follow the clef-schema and cannot be just any odd json.

@nblumhardt
Copy link
Member

Thanks for the suggestion. The intention is that --json should at some point (hopefully soon!) support field name mappings, e.g. to map Timestamp to the timestamp field, and so-on.

Ingesting the classic Serilog JSON format would make a good capability test for this 👍

@nblumhardt nblumhardt added the enhancement New feature or request label Dec 2, 2020
@nblumhardt
Copy link
Member

I wonder if we could achieve this using something like Seq's expression syntax to "construct" a CLEF document based on whatever the input JSON is?

I.e. (incomplete example):

--map="{@t: Timestamp, @mt: MessageTemplate, @l: Level, @x: Exception, ..Properties}"

🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants