# Conf file issues

**URL:** <https://discuss.elastic.co/t/conf-file-issues/57035>\
**Category:** Logstash\
**Created:** [August 2, 2016, 4:14pm UTC](https://discuss.elastic.co/t/conf-file-issues/57035 "2016-08-02T16:14:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zesix](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zesix/32/11162_2.png) [@Zesix](https://discuss.elastic.co/u/Zesix)\
**Post date:** [August 2, 2016, 4:14pm UTC](https://discuss.elastic.co/t/conf-file-issues/57035/1 "2016-08-02T16:14:34Z")

</div>

```
# This conf is for PISC logs.
input {
    beats {
        stdin {
            codec => multiline {
            pattern => "^\s"
            what => "previous"
            }
        }
        codec => multiline {
            pattern => "^%{TIMESTAMP_ISO8601}"
            negate => true
            what => "previous"
        }
    }
}
filter {
    date {
        match => ["message", "YYYY-MM-DD HH:MM:SS"]
        target => "@timestamp"
    }
    grok {
        match => { "message" => "%{TIMESTAMP_ISO8601:timestamp} %{LOGLEVEL:loglevel} - %{IP:client}:%{POSINT:port} - %{HOSTNAME:host} - (?<log_type>[A-Za-z\s]{0,17})\n%{JAVACLASS:exception_type}: (?<stack_trace>[A-Za-z0-9\n\s.`(),:\\&]*)" }
    }
 }
output {
    elasticsearch {
    }
    stdout{
        codec => rubydebug
    }
}

```

When I try to do the configtest, I get:

The given configuration is invalid. Reason: Expected one of #, =\> at line 4, column 15 (byte 65) after  
# This conf is for PISC logs.  
input {  
beats {  
stdin {:level=\>:fatal}

Can someone help me out?

---

<div class="post-metadata">

**Author:** ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)\
**Post date:** [August 2, 2016, 10:42pm UTC](https://discuss.elastic.co/t/conf-file-issues/57035/2 "2016-08-02T22:42:44Z")

</div>

> [@Zesix](#):
>
> beats {  
> stdin {  
> codec =\> multiline {  
> pattern =\> "^\s"  
> what =\> "previous"  
> }  
> }  
> codec =\> multiline {  
> pattern =\> "^%{TIMESTAMP\_ISO8601}"  
> negate =\> true  
> what =\> "previous"  
> }

Why you put `stdin` input plugin config inside `beats` input plugin config? It is not supported according to the documentation [Beats input plugin | Logstash Reference [8.11] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-beats.html)

Is this what you are trying to do?

```auto
input {
     stdin {
            codec =&gt; multiline {
            pattern =&gt; "^\s"
            what =&gt; "previous"
            }
        }

    beats {       
        codec =&gt; multiline {
            pattern =&gt; "^%{TIMESTAMP_ISO8601}"
            negate =&gt; true
            what =&gt; "previous"
        }
    }
}

```

---

<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:** [July 6, 2017, 4:45am UTC](https://discuss.elastic.co/t/conf-file-issues/57035/3 "2017-07-06T04:45:11Z")

</div>


