All Projects → datalust → Clef Tool

datalust / Clef Tool

Licence: apache-2.0
A command-line tool for manipulating Compact Log Event Format files

Labels

Projects that are alternatives of or similar to Clef Tool

Electron Json Storage
📦 Easily write and read user settings in Electron apps
Stars: ✭ 1,193 (+1410.13%)
Mutual labels:  json
Jsonp
Java API for JSON Processing (JSON-P)
Stars: ✭ 77 (-2.53%)
Mutual labels:  json
Mir Ion
WIP, use libmir/asdf package for now
Stars: ✭ 78 (-1.27%)
Mutual labels:  json
Sec Edgar Financials
Extract financial data from the SEC's EDGAR database
Stars: ✭ 73 (-7.59%)
Mutual labels:  json
Mirth Transforms
Welcome to Datica's open-source repository of Mirth Transforms and supplementary resources!
Stars: ✭ 77 (-2.53%)
Mutual labels:  json
Tortilla
Wrapping web APIs made easy.
Stars: ✭ 1,215 (+1437.97%)
Mutual labels:  json
Mson React
React and Material-UI Rendering Layer for MSON
Stars: ✭ 74 (-6.33%)
Mutual labels:  json
Neo
Create blazing fast multithreaded Web Apps
Stars: ✭ 1,219 (+1443.04%)
Mutual labels:  json
Json2go
Create go type representation from json
Stars: ✭ 76 (-3.8%)
Mutual labels:  json
Json Mobx
Simple undo/redo and persistence for MobX
Stars: ✭ 78 (-1.27%)
Mutual labels:  json
Adaptivecardui
Snippets of UI, authored in JSON and rendered with SwiftUI
Stars: ✭ 73 (-7.59%)
Mutual labels:  json
Feedparser
Parse feeds in Python
Stars: ✭ 1,200 (+1418.99%)
Mutual labels:  json
Circe Magnolia
Circe codec derivation using magnolia
Stars: ✭ 78 (-1.27%)
Mutual labels:  json
Newtonsoft.json
Json.NET is a popular high-performance JSON framework for .NET
Stars: ✭ 8,988 (+11277.22%)
Mutual labels:  json
Dartson
Dartson is a Dart library that can be used to convert Dart objects into a JSON string.
Stars: ✭ 78 (-1.27%)
Mutual labels:  json
Msgpack Unity3d
MessagePack and JSON serializer for Unity3D
Stars: ✭ 74 (-6.33%)
Mutual labels:  json
Foxylink
An easy way to handle integration tasks in a reliable way and run them on 1C:Enterprise server
Stars: ✭ 77 (-2.53%)
Mutual labels:  json
Go Nulltype
Null friendly types
Stars: ✭ 79 (+0%)
Mutual labels:  json
Jsonifier
Fast and simple JSON encoding toolkit
Stars: ✭ 79 (+0%)
Mutual labels:  json
Pytest Json Report
🗒️ A pytest plugin to report test results as JSON
Stars: ✭ 77 (-2.53%)
Mutual labels:  json

Compact Log Event Format Tool Build status Download

The clef command-line tool reads and processes the newline-delimited JSON streams produced by Serilog.Formatting.Compact and other sources.

What does CLEF look like?

CLEF is a very simple, compact JSON event format with standardized fields for timestamps, messages, levels and so-on.

{"@t":"2017-05-09T01:23:45.67890Z","@mt":"Starting up","MachineName":"web-53a889fe"}

Reading CLEF files

The default action, given a CLEF file, will be to pretty-print it in text format to the console.

> clef -i log-20170509.clef
[2017-05-09T01:23:45.67890Z INF] Starting up
[2017-05-09T01:23:45.96950Z INF] Checking for updates to version 123.4
...

The tool also accepts events on STDIN:

> cat log-20170509.clef | clef
...

Filtering

Expressions using the Serilog.Filters.Expressions syntax can be specified to filter the stream:

> clef -i log-20170509.clef --filter="Version > 100"
[2017-05-09T01:23:45.96950Z INF] Checking for updates to version 123.4

Formats

Output will be plain text unless another format is specified.

Write the output in JSON format using --format-json:

> clef -i log-20170509.clef --format-json
{"@t":"2017-05-09T01:23:45.67890Z","@mt":"Starting up"}
...

Control the output text format using --format-template:

> clef -i log-20170509.clef --format-template="{Message}{NewLine}"
Starting up
...

Outputs

Output will be written to STDOUT unless another destination is specified.

Write output to a file with -o:

> clef -i log-20170509.clef -o log-20170509.txt

Send the output to Seq by specifying a server URL and optional API key:

> clef -i log-20170509.clef --out-seq="https://seq.example.com" --out-seq-apikey="1234567890"

Enrichment

Events can be enriched with additional properties by specifying them using the -p switch:

> clef -i log-20170509.clef -p CustomerId=C123 -p Environment=Support [...]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].