Last active
November 10, 2023 09:25
-
-
Save bitle/65b45ce807ca3bc84183145efee9528f to your computer and use it in GitHub Desktop.
Lnav format for reading JFrog Billing Report files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://lnav.org/schemas/format-v1.schema.json", | |
"bunyan_log": { | |
"title": "JFrog Billing Report", | |
"url": "https://gist.github.com/bitle/65b45ce807ca3bc84183145efee9528f", | |
"description": "Lnav format for reading JFrog Billing Report files", | |
"json": true, | |
"file-pattern": "artifactory-traffic-.*.log", | |
"line-format": [ | |
{ | |
"field": "billing_timestamp" | |
}, | |
" - ", | |
{ | |
"field": "server_name" | |
}, | |
" ", | |
{ | |
"field": "service" | |
}, | |
" ", | |
{ | |
"field": "action" | |
}, | |
" [ ", | |
{ | |
"field": "ip", | |
"auto-width": true, | |
"align": "right" | |
}, | |
" ] ", | |
{ | |
"field": "repository", | |
"auto-width": true | |
}, | |
" ", | |
{ | |
"field": "user_name", | |
"auto-width": true | |
}, | |
" ", | |
{ | |
"field": "package_type", | |
"auto-width": true | |
}, | |
" ", | |
{ | |
"field": "repo_type", | |
"auto-width": true | |
}, | |
" ", | |
{ | |
"field": "quantity", | |
"auto-width": true, | |
"align": "right" | |
}, | |
" ", | |
{ | |
"field": "consumption_unit" | |
}, | |
" [ ", | |
{ | |
"field": "artifact_path" | |
}, | |
" ]" | |
], | |
"value": { | |
"billing_timestamp": { | |
"kind": "string" | |
}, | |
"server_name": { | |
"kind": "string" | |
}, | |
"service": { | |
"kind": "string" | |
}, | |
"action": { | |
"kind": "string" | |
}, | |
"ip": { | |
"kind": "string", | |
"identifier": true | |
}, | |
"repository": { | |
"kind": "string" | |
}, | |
"project": { | |
"kind": "string", | |
"hidden": true | |
}, | |
"artifact_path": { | |
"kind": "string", | |
"identifier": true | |
}, | |
"user_name": { | |
"kind": "string" | |
}, | |
"package_type": { | |
"kind": "string" | |
}, | |
"repo_type": { | |
"kind": "string" | |
}, | |
"consumption_unit": { | |
"kind": "string" | |
}, | |
"quantity": { | |
"kind": "integer" | |
} | |
}, | |
"timestamp-field": "billing_timestamp", | |
"timestamp-format": "%Y-%M-%d %H:%m:%s.%L", | |
"body-field": "artifact_path" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment