# LS1.5 output to file, dots

**URL:** <https://discuss.elastic.co/t/ls1-5-output-to-file-dots/67808>\
**Category:** Logstash\
**Created:** [December 1, 2016, 8:48pm UTC](https://discuss.elastic.co/t/ls1-5-output-to-file-dots/67808 "2016-12-01T20:48:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![teebu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teebu/32/10119_2.png) [@teebu](https://discuss.elastic.co/u/teebu)\
**Post date:** [December 1, 2016, 8:48pm UTC](https://discuss.elastic.co/t/ls1-5-output-to-file-dots/67808/1 "2016-12-01T20:48:19Z")

</div>

LS1.5 I want to output docs to a file, but file{} is outputting the whole event. i tried using: file {codec =\> dots} and file {codec =\> line {format =\> "."}} but its not doing it. It outputs the entire event json.

---

<div class="post-metadata">

**Author:** ![teebu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teebu/32/10119_2.png) [@teebu](https://discuss.elastic.co/u/teebu)\
**Post date:** [December 2, 2016, 7:23am UTC](https://discuss.elastic.co/t/ls1-5-output-to-file-dots/67808/2 "2016-12-02T07:23:55Z")

</div>

I guess im using an older output plugin, using `message_format` now.

```auto
file {
            message_format => "."
            path => "/path/to/logfile.log"
            gzip => true
            flush_interval => 10
        }

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 30, 2016, 7:23am UTC](https://discuss.elastic.co/t/ls1-5-output-to-file-dots/67808/3 "2016-12-30T07:23:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
