# Logstash logs configuration

**URL:** <https://discuss.elastic.co/t/logstash-logs-configuration/77614>\
**Category:** Logstash\
**Created:** [March 7, 2017, 8:38am UTC](https://discuss.elastic.co/t/logstash-logs-configuration/77614 "2017-03-07T08:38:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emilio](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@emilio](https://discuss.elastic.co/u/emilio)\
**Post date:** [March 7, 2017, 8:38am UTC](https://discuss.elastic.co/t/logstash-logs-configuration/77614/1 "2017-03-07T08:38:57Z")

</div>

Dear all,

I need your advice.

I would like to place all logstash logs on the same location - /data01/logstash/logs

Where i should configure it?

I need all levels of logging: info, warn, error.

Currently my log4j2.properties is

name = LogstashPropertiesConfig

appender.rolling.type = RollingFile  
[appender.rolling.name](http://appender.rolling.name) = plain\_rolling  
appender.rolling.fileName = /data01/logstash/logs/logstash-${sys:ls.log.format}.log  
appender.rolling.filePattern = /data01/logstash/logs/logstash-${sys:ls.log.format}-%d{yyyy-MM-dd}.log  
appender.rolling.policies.type = Policies  
appender.rolling.policies.time.type = TimeBasedTriggeringPolicy  
appender.rolling.policies.time.interval = 1  
appender.rolling.policies.time.modulate = true  
appender.rolling.layout.type = PatternLayout  
appender.rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c] %-.10000m%n

appender.json\_rolling.type = RollingFile  
appender.json\_rolling.name = json\_rolling  
appender.json\_rolling.fileName = /data01/logstash/logs/logstash-${sys:ls.log.format}.log  
appender.json\_rolling.filePattern = /data01/logstash/logs/logstash-${sys:ls.log.format}-%d{yyyy-MM-dd}.log  
appender.json\_rolling.policies.type = Policies  
appender.json\_rolling.policies.time.type = TimeBasedTriggeringPolicy  
appender.json\_rolling.policies.time.interval = 1  
appender.json\_rolling.policies.time.modulate = true  
appender.json\_rolling.layout.type = JSONLayout  
appender.json\_rolling.layout.compact = true  
appender.json\_rolling.layout.eventEol = true

rootLogger.level = ${sys:ls.log.level}  
rootLogger.appenderRef.rolling.ref = ${sys:ls.log.format}\_rolling

My logstash.yml is

pipeline:  
batch:  
size: 125  
delay: 5

pipeline.batch.size: 125  
pipeline.batch.delay: 5

[node.name](http://node.name): "logstash"

pipeline.workers: 1

pipeline.output.workers: 1

pipeline.batch.size: 125

pipeline.batch.delay: 5

pipeline.unsafe\_shutdown: false

path.config: /etc/logstash/conf.d

config.string: /etc/logstash/conf.d

config.reload.automatic: true

config.reload.interval: 3600

config.debug: false

queue.type: memory

http.host: "127.0.0.1"

http.port: 9600-9700

log.level:

- fatal
- error
- warn
- info (default)

log.format: plain

path.logs: /data01/logstash/logs

log.level: info,warn,error

path.logs: /data01/logstash/logs

---

<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:** [April 4, 2017, 8:39am UTC](https://discuss.elastic.co/t/logstash-logs-configuration/77614/2 "2017-04-04T08:39:04Z")

</div>

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