-
Notifications
You must be signed in to change notification settings - Fork 2
Help
When importing logs sample from a File, it's possible to do so in several ways, depending on how the sample file is organised:
- As a Single Log per file
- As an Array of Logs per file
- As an Set of Logs
See below for details about each.
This is only valid if the sample file contains a single log.
ℹ️ - It's independent on how the log itself is formatted.
Good examples:
- Compact format:
{"timestamp":"20210422T16:40:00","id":"abcdef-1234"}
- Spaced/tabbed format:
{
"timestamp":"20210422T16:40:00",
"id":"abcdef-1234"
}
- Mixed format:
{
"timestamp":"20210422T16:40:00", "id":
"abcdef-1234"
}
This is only valid if the sample file contains a single Array of one or more logs.
ℹ️ - It's independent on how the array and logs themselves are formatted.
Good examples:
- Compact format:
[{"timestamp":"20210422T16:40:00","id":"abcdef-1234"},{"timestamp":"20210422T16:43:00","id":"xyzmno-8754"}]
- Spaced/tabbed format:
[
{
"timestamp":"20210422T16:40:00",
"id":"abcdef-1234"
},
{
"timestamp":"20210422T16:43:00",
"id":"xyzmno-8754"
}
]
- Mixed format:
[{
"timestamp":"20210422T16:40:00","id":"abcdef-1234"
},
{"timestamp":
"20210422T16:43:00",
"id":"xyzmno-8754"}
]
This is only valid if the sample file contains a set of one or more logs, each written on a separate line. Put in another way: a set of Carriage Return separated single logs.
⚠️ IMPORTANT
It's very dependent on how the logs are formatted:
- no more than one log per line
- no less than one log per line 😅
- empty lines will be ignored
- each line must be a proper JSON entry
- improperly formatted JSON entries will be ignored
- each line must be separated by at least a Carriage Return character (
\r
aka CR aka ASCII #13)
- Line Feed characters (
\n
aka LF aka ASCII #10) will be blissfully ignored
Good examples:
- Compact format:
{"timestamp":"20210422T16:40:00","id":"abcdef-1234"}
{"timestamp":"20210422T16:43:00","id":"xyzmno-8754"}
- Spaced format:
{ "timestamp": "20210422T16:40:00", "id":" abcdef-1234" }
{ "timestamp": "20210422T16:43:00", "id": "xyzmno-8754"}
- Mixed format:
{ "timestamp": "20210422T16:40:00", "id":" abcdef-1234" }
{"timestamp":"20210422T16:43:00","id":"xyzmno-8754"}
If you found a mistake, have a suggestion, want to help/contribute, or cannot find what you were looking for, please get in touch and raise an Issue.