# Queries and Issues faced with Logstash

**URL:** https://discuss.elastic.co/t/queries-and-issues-faced-with-logstash/117338
**Category:** Logstash
**Created:** [January 27, 2018, 10:53pm UTC](https://discuss.elastic.co/t/queries-and-issues-faced-with-logstash/117338 "2018-01-27T22:53:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![SawyerFord](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@SawyerFord](https://discuss.elastic.co/u/SawyerFord)
#### Post date: [January 27, 2018, 10:53pm UTC](https://discuss.elastic.co/t/queries-and-issues-faced-with-logstash/117338/1 "2018-01-27T22:53:27Z")

</div>

I have 5 queries and issues faced with Logstash.

1. **Whether** I really need to configure logstash.conf with input and output plugins. I did not configured anything inside logstash.conf , any how I am getting logs in JSON.

2. My application also uses docker. **Should** I configure logstash inside docker(I am new to docker and the word image in it is very confusing, can't get enough of it)

3. **What** I observe is that the error stack captured inside ERROR attribute does not come line by line, but they are in a single line. The JSON format not able to detect \n inside the error logs

4. I get the below SL4J message in the logs at he bottom as in red colour. I like to provide JSON logging in our live application which generate thousands of logs daily, **does** this below message overrides/overwrites any error or debug logs

5. **Why** do some part of the logs don't come in JSON format

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [January 29, 2018, 7:14am UTC](https://discuss.elastic.co/t/queries-and-issues-faced-with-logstash/117338/2 "2018-01-29T07:14:51Z")

</div>

> Whether I really need to configure logstash.conf with input and output plugins. I did not configured anything inside logstash.conf , any how I am getting logs in JSON.

I don't understand the question. "logstash.conf" is not a standardized configuration filename so you don't need that file at all, but you obviously need inputs and outputs in _some_ file that Logstash reads if you want it to actually do something.

> My application also uses docker. Should I configure logstash inside docker(I am new to docker and the word image in it is very confusing, can't get enough of it)

I recommend storing the log files produced by an application persistently (either in a volume or a directory mounted from the host) and run Logstash in a separate container (or directly on the host) to process those files.

> Why do some part of the logs don't come in JSON format

This isn't the best place to ask why Logback doesn't behave as you expect.

---

<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: [February 26, 2018, 7:15am UTC](https://discuss.elastic.co/t/queries-and-issues-faced-with-logstash/117338/3 "2018-02-26T07:15:00Z")

</div>

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