# Multiline codec plugin with no output

**URL:** <https://discuss.elastic.co/t/multiline-codec-plugin-with-no-output/157974>\
**Category:** Logstash\
**Created:** [November 23, 2018, 8:52am UTC](https://discuss.elastic.co/t/multiline-codec-plugin-with-no-output/157974 "2018-11-23T08:52:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![opser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/opser/32/38000_2.png) [@opser](https://discuss.elastic.co/u/opser)\
**Post date:** [November 23, 2018, 8:52am UTC](https://discuss.elastic.co/t/multiline-codec-plugin-with-no-output/157974/1 "2018-11-23T08:52:11Z")

</div>

Hi,

I'm trying to use Multiline codec plugin with Logstash

config file:

```
input {
    file {
            path => "/path/to/file"
            start_position => "beginning"
            sincedb_path => "/dev/null"
            codec => multiline {
                            pattern => "^%{YEAR:year}"
                            negate => true
                            what => "previous"
            }
    }
output {
    elasticsearch {
            index => "multiline"
            hosts => ["localhost:9200"]
    }
}

```

after running the config file through the pipeline.yml it shows that pipelines are running and no errors are shown. However no results are found for the particular index in kibana.  
But when starting logstash with this particular config manually:

```
bin/logstash –f test.config

```

then everything works as expected.

Can someone please help?

---

<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 21, 2018, 8:52am UTC](https://discuss.elastic.co/t/multiline-codec-plugin-with-no-output/157974/2 "2018-12-21T08:52:13Z")

</div>

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