diff options
| author | Paul Buetow <paul@buetow.org> | 2021-11-07 13:20:14 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-11-07 13:20:14 +0200 |
| commit | e11a4b5bc7960ee7f20cabc7fd7810572d934806 (patch) | |
| tree | cb8b08889f5b00a2ca97ffe06f55699286b5b58b /doc/examples.md | |
| parent | 93e4ae02f1b1f8e03e72594e520f471fbac3c652 (diff) | |
update dcat.gif example
Diffstat (limited to 'doc/examples.md')
| -rw-r--r-- | doc/examples.md | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/doc/examples.md b/doc/examples.md index 584a9fb..4a08321 100644 --- a/doc/examples.md +++ b/doc/examples.md @@ -17,7 +17,7 @@ Hint: you can also provide a comma separated server list, e.g.: `--servers serve  -You can also use the shorthand version (omitting the `--files`): +Hint: You can also use the shorthand version (omitting the `--files`): ```shell % dtail --servers serverlist.txt --grep INFO "/var/log/dserver/*.log" @@ -37,7 +37,7 @@ For MapReduce queries to work, you have to ensure that DTail supports your log f  -You can also use the shorthand version: +Hint: You can also use the shorthand version: ```shell % dtail --servers serverlist.txt \ @@ -56,20 +56,20 @@ Here is yet another example: # How to use ``dcat`` -The following example demonstrates how to cat files (display the full content of the files) of multiple servers at once. The servers are provided as a comma-separated list this time. +The following example demonstrates how to cat files (display the full content of the files) of multiple servers at once. + +As you can see in this example, a DTail client also creates a local log file of all received data in `~/log`. You can also use the `-noColor` and `-plain` flags (they also work with other commands than `dcat`). ```shell -% dcat --servers serv-011.lan.example.org,serv-012.lan.example.org,serv-013.lan.example.org \ - --files /etc/hostname +% dcat --servers serverlist.txt --files /etc/hostname ```  -You can also use the shorthand version: +Hint: You can also use the shorthand version: ```shell -% dcat --servers serv-011.lan.example.org,serv-012.lan.example.org,serv-013.lan.example.org \ - /etc/hostname +% dcat --servers serverlist.txt /etc/hostname ``` # How to use ``dgrep`` @@ -86,7 +86,6 @@ The following example demonstrates how to grep files (display only the lines whi You can also use the shorthand version: -TODO: Auto detect that swap is a regex. ```shell % dgrep --servers <(head -n 20 serverlist.txt) \ /etc/fstab swap |
