# Basic Configuration File

**URL:** <https://discuss.elastic.co/t/basic-configuration-file/32215>\
**Category:** Logstash\
**Created:** [October 14, 2015, 8:49pm UTC](https://discuss.elastic.co/t/basic-configuration-file/32215 "2015-10-14T20:49:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Didier](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Didier](https://discuss.elastic.co/u/Didier)\
**Post date:** [October 14, 2015, 8:49pm UTC](https://discuss.elastic.co/t/basic-configuration-file/32215/1 "2015-10-14T20:49:30Z")

</div>

Hello,

I have the following code as a test configuration file.

input {  
file {  
path =\> "C:\Users\Admin\Desktop\Logs\_elasticsearch\test\_10142015.txt"  
}  
}

filter {  
grok {  
patterns\_dir =\> "C:\Program Files\logstash-1.5.3\patterns"  
match =\> {"message" =\> "%{XYZ:time} %{GREEDYDATA:MESSAGE}"}  
}  
}

output {  
elasticsearch {  
host =\> localhost  
protocol =\> "http"  
}  
stdout { codec =\> rubydebug }  
}

Our pattern file has the following definition: XYZ %{MONTH} %{MONTHDAY}, %{YEAR} %{TIME} (?:AM|am|PM|pm)

I got the following error lines while running the configuration file which I believe can be safely ignored:

C:\Program Files\logstash-1.5.3\bin\>logstash.bat -f test.conf  
io/console not supported; tty will not be manipulated  
'[DEPRECATED] use `require 'concurrent'` instead of `require 'concurrent_ruby'`  
Logstash startup completed

1. If required, can someone point out any mistake that we may have?
2. Also, I would like to validate on JSense (on a browser) if the parsing is being done as expected and that my code is working. What would be the exact command that I should be using?

---

<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:** [October 14, 2015, 9:03pm UTC](https://discuss.elastic.co/t/basic-configuration-file/32215/2 "2015-10-14T21:03:36Z")

</div>

At first glance it looks ok.

But what do you mean validate in your browser? LS has nothing to do with browsers.

---

<div class="post-metadata">

**Author:** ![Didier](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Didier](https://discuss.elastic.co/u/Didier)\
**Post date:** [October 14, 2015, 9:11pm UTC](https://discuss.elastic.co/t/basic-configuration-file/32215/3 "2015-10-14T21:11:56Z")

</div>

Hi Mark,

Thanks for your quick response. What I mean by "validate in my browser" is that I would like to test that my parsing that I coded in the configuration file is working as expected. I believed that it is possible to use a tool (such as JSsense) that uses a browser as an interface to run the commands.

Else, I would not mind running the commands soly on command line.

Thanks for your assistance

---

<div class="post-metadata">

**Author:** ![Didier](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Didier](https://discuss.elastic.co/u/Didier)\
**Post date:** [October 15, 2015, 4:44pm UTC](https://discuss.elastic.co/t/basic-configuration-file/32215/4 "2015-10-15T16:44:34Z")

</div>

I was looking for some assistance as we were not able to output the labels using a curl command after we ran the configuration file shown above.

Can someone show us how we would test this part of the code.

Regards

---

<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:** [October 15, 2015, 8:09pm UTC](https://discuss.elastic.co/t/basic-configuration-file/32215/5 "2015-10-15T20:09:54Z")

</div>

I'm a little lost here, you don't use curl with this.  
Can you be a little more explicit with what you are doing, including what commands you are running.

---

<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, 5:26am UTC](https://discuss.elastic.co/t/basic-configuration-file/32215/6 "2017-07-06T05:26:22Z")

</div>

Closed on July 6, 2017, 5:26am UTC


