summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.