summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2022-07-18 10:20:59 +0100
committerPaul Buetow <pbuetow@mimecast.com>2022-07-18 10:20:59 +0100
commit0715779cfa0d4e4ac60480d0ea462afe6881f773 (patch)
tree9c5fa834e65164828b7d777de05e73373c430e82
parent0cb88e933ba186ab7ab751e4ff6224c40639c874 (diff)
Include example for "outfile append".
-rw-r--r--doc/examples.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/examples.md b/doc/examples.md
index 56744f5..26ce002 100644
--- a/doc/examples.md
+++ b/doc/examples.md
@@ -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.