# Having issue on running a simple config file

**URL:** <https://discuss.elastic.co/t/having-issue-on-running-a-simple-config-file/57238>\
**Category:** Logstash\
**Created:** [August 4, 2016, 3:05pm UTC](https://discuss.elastic.co/t/having-issue-on-running-a-simple-config-file/57238 "2016-08-04T15:05:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reghuraman\_S](https://avatars.discourse-cdn.com/v4/letter/r/9fc348/32.png) [@Reghuraman\_S](https://discuss.elastic.co/u/Reghuraman_S)\
**Post date:** [August 4, 2016, 3:05pm UTC](https://discuss.elastic.co/t/having-issue-on-running-a-simple-config-file/57238/1 "2016-08-04T15:05:29Z")

</div>

**In Windows 7, aommand I used to run logstash;**  
..\logstash-2.3.2\bin\logstash -f "new-apache.conf" --debug

**Config File: new-apache.conf;**  
input {  
file {  
path =\> "server.log"  
start\_position =\> "beginning"  
}  
}  
output {  
file {  
codec =\> { line { format =\> "%{[time]} | %{[severity]} : /%{[thread]}/ %{[loggername]} (%{[sourcemethodname]}) - %{[message]}" } }  
path =\> "result.log"  
}  
}

**Got following error;**  
Using JAVA\_HOME=C:\Program Files\Java\jre1.8.0\_45 retrieved from C:\ProgramData  
Oracle\java\javapath\java.exe  
io/console not supported; tty will not be manipulated  
←[36mReading config file {:config\_file=\>"D:/SRRAGHU/ProjectInfo/Adv360Tasks/R\_An  
d\_D/LogVisualizer/samples/new-apache.conf", :level=\>:debug, :file=\>"/SRRAGHU/Pro  
jectInfo/Adv360Tasks/R\_And\_D/LogVisualizer/logstash-2.3.2/vendor/bundle/jruby/1.  
9/gems/logstash-core-2.3.2-java/lib/logstash/config/loader.rb", :line=\>"69", :me  
thod=\>"local\_config"}←[0m  
←[31mfetched an invalid config {:config=\>"input {\n file {\n path =\>   
"server.log"\n start\_position =\> "beginning"\n }\n}\n \noutput {  
n file {\n\t codec =\> { line { format =\> "%{[time]} | %{[severity]} : /%{  
[thread]}/ %{[loggername]} (%{[sourcemethodname]}) - %{[message]}" } }\n  
path =\> "result.log"\n }\n}\n", :reason=\>"Expected one of #, =\> at line 10  
, column 22 (byte 140) after output {\n file {\n\t codec =\> { line ", :lev  
el=\>:error, :file=\>"/SRRAGHU/ProjectInfo/Adv360Tasks/R\_And\_D/LogVisualizer/logst  
ash-2.3.2/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.2-java/lib/logstash/age  
nt.rb", :line=\>"390", :method=\>"create\_pipeline"}←[0m  
←[32mstarting agent {:level=\>:info, :file=\>"/SRRAGHU/ProjectInfo/Adv360Tasks/R\_A  
nd\_D/LogVisualizer/logstash-2.3.2/vendor/bundle/jruby/1.9/gems/logstash-core-2.3  
.2-java/lib/logstash/agent.rb", :line=\>"207", :method=\>"execute"}←[0m  
The signal HUP is in use by the JVM and will not work correctly on this platform

I am unable to find what is my mistake here. Can some one help to resolve this?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 5, 2016, 12:39am UTC](https://discuss.elastic.co/t/having-issue-on-running-a-simple-config-file/57238/2 "2016-08-05T00:39:20Z")

</div>

> [@Reghuraman\_S](#):
>
> "Expected one of #, =\> at line 10, column 22 (byte 140) after output {\n file {\n\t codec =\> { line "

And then looking at [Line codec plugin | Logstash Reference [8.11] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-codecs-line.html) I am not sure if that `format` part is correct?

The docs aren't too clear unfortunately.

---

<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:44am UTC](https://discuss.elastic.co/t/having-issue-on-running-a-simple-config-file/57238/3 "2017-07-06T04:44:43Z")

</div>


