Defining a set of related log formats sharing common subset of fields #1528
Replies: 2 comments
-
|
@tstack Any thoughts? |
Beta Was this translation helpful? Give feedback.
-
I'm not really a fan of adding any sort of hierarchy. It tends to make things really complicated and hard to reason about. I would just copy and paste between formats. If you really wanted to go further, you could write a python script or something to generate the files since it's easy to spit out a bunch of JSON. Really, though, some concrete examples of what you're after would help me understand what you're after. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a couple log types (each log is in JSON Lines format) where there are fields common to all types and where each type adds additional fields specific to this type.
I would like to create log formats for them but in a way where I define common subset of fields only once and reference this subset in each format.
In other words I would like to create a base log format and create additional formats by extending this base format.
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions