Skip to content

Commit

Permalink
Include example for "outfile append".
Browse files Browse the repository at this point in the history
  • Loading branch information
pbuetow committed Jul 18, 2022
1 parent 0998d0a commit e442e31
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ Here is another example:

![dtail-map](dtail-map2.gif "Tail mapreduce example 2")

You can also continuously append the results to a CSV file by adding `outfile append filename.csv` to the query:

```shell
% dtail --servers serverlist.txt \
--files '/var/log/dserver/*.log' \
--query 'from STATS select ... outfile append result.csv'
```

## How to use `dcat`

The following example demonstrates how to cat files (display the full content of the files) of multiple servers at once.
Expand Down

0 comments on commit e442e31

Please sign in to comment.