mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add json syntax highlighting for jq output
parent
57821721e3
commit
fae5ed7d65
|
@ -4,9 +4,14 @@ Actually SeaweedFS can give you more!
|
|||
|
||||
# Experience it first
|
||||
|
||||
You can continuously watch the SeaweedFS meta data changes. Let's also filter with `jq` and see only the new files created:
|
||||
```console
|
||||
$ weed filer.meta.tail -timeAgo=3h | jq .eventNotification.newEntry
|
||||
You can continuously watch the SeaweedFS meta data changes. Let's also filter with `jq` and see only the new files created using this command:
|
||||
```bash
|
||||
weed filer.meta.tail -timeAgo=3h | jq .eventNotification.newEntry
|
||||
```
|
||||
|
||||
which will return:
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "abc.png",
|
||||
"chunks": [
|
||||
|
@ -33,9 +38,7 @@ $ weed filer.meta.tail -timeAgo=3h | jq .eventNotification.newEntry
|
|||
"md5": "KEjYEZgpc//aNM+MhZnj9g=="
|
||||
}
|
||||
}
|
||||
|
||||
...
|
||||
|
||||
\\ the rest has been truncated for brevity
|
||||
```
|
||||
|
||||
See the help:
|
||||
|
|
Loading…
Reference in a new issue