docs/index.asciidoc in logstash-output-csv-3.0.7 vs docs/index.asciidoc in logstash-output-csv-3.0.8

- old
+ new

@@ -67,11 +67,11 @@ * Value type is <<hash,hash>> * Default value is `{}` Options for CSV output. This is passed directly to the Ruby stdlib to_csv function. Full documentation is available on the http://ruby-doc.org/stdlib-2.0.0/libdoc/csv/rdoc/index.html[Ruby CSV documentation page]. -A typical use case would be to use alternative column or row seperators eg: `csv_options => {"col_sep" => "\t" "row_sep" => "\r\n"}` gives tab seperated data with windows line endings +A typical use case would be to use alternative column or row separators eg: `csv_options => {"col_sep" => "\t" "row_sep" => "\r\n"}` gives tab separated data with windows line endings [id="plugins-{type}s-{plugin}-dir_mode"] ===== `dir_mode` * Value type is <<number,number>> @@ -140,18 +140,22 @@ This output writes events to files on disk. You can use fields from the event as parts of the filename and/or path. By default, this output writes one event per line in **json** format. -You can customise the line format using the `line` codec like +You can customise the line format using the `line` codec like: + [source,ruby] +----- output { file { path => ... codec => line { format => "custom format: %{message}"} } } +----- + The path to the file to write. Event fields can be used here, like `/var/log/logstash/%{host}/%{application}` One may also utilize the path option for date-based log rotation via the joda time format. This will use the event timestamp. @@ -172,7 +176,8 @@ [id="plugins-{type}s-{plugin}-common-options"] include::{include_path}/{type}.asciidoc[] + :default_codec!: \ No newline at end of file