# APM Server logs not being generated

**URL:** https://discuss.elastic.co/t/apm-server-logs-not-being-generated/195776
**Category:** APM
**Tags:** server
**Created:** [August 19, 2019, 4:10pm UTC](https://discuss.elastic.co/t/apm-server-logs-not-being-generated/195776 "2019-08-19T16:10:39Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Vishnu\_Singhal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishnu_singhal/32/52488_2.png) [@Vishnu\_Singhal](https://discuss.elastic.co/u/Vishnu_Singhal)
#### Post date: [August 19, 2019, 4:10pm UTC](https://discuss.elastic.co/t/apm-server-logs-not-being-generated/195776/1 "2019-08-19T16:10:40Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text 🙂

**Kibana version** : NA

**Elasticsearch version** : NA

**APM Server version** : 7.1.2

**APM Agent language and version** : Java

**Browser version** : NA

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:

```auto
==========Following configuration -=======================

#================================ Logging ======================================
#
# There are three options for the log output: syslog, file, stderr.
# Under Windows systems, the log files are per default sent to the file output,
# under all other system per default to syslog.

# Sets log level. The default log level is info.
# Available log levels are: error, warning, info, debug
logging.level: debug

# Enable debug output for selected components. To enable all selectors use ["*"]
# Other available selectors are "beat", "publish", "service"
# Multiple selectors can be chained.
#logging.selectors: [colortokens]

# Send all logging output to syslog. The default is false.
#logging.to_syslog: true

# If enabled, apm-server periodically logs its internal metrics that have changed
# in the last period. For each metric that changed, the delta from the value at
# the beginning of the period is logged. Also, the total values for
# all non-zero internal metrics are logged on shutdown. The default is true.
logging.metrics.enabled: false

# The period after which to log the internal metrics. The default is 30s.
#logging.metrics.period: 30s

# Logging to rotating files. Set logging.to_files to false to disable logging to
# files.
logging.to_files: true
logging.files:
  # Configure the path where the logs are written. The default is the logs directory
  # under the home path (the binary location).
  path: /var/log/apm-server

  # The name of the files where the logs are written to.
  name: apm-server

  # Configure log file size limit. If limit is reached, log file will be
  # automatically rotated
  rotateeverybytes: 10485760 # = 10MB

  # Number of rotated log files to keep. Oldest files will be deleted first.
  keepfiles: 7

  # The permissions mask to apply when rotating log files. The default value is 0600.
  # Must be a valid Unix-style file permissions mask expressed in octal notation.
  permissions: 0600

  # Enable log file rotation on time intervals in addition to size-based rotation.
  # Intervals must be at least 1s. Values of 1m, 1h, 24h, 7*24h, 30*24h, and 365*24h
  # are boundary-aligned with minutes, hours, days, weeks, months, and years as
  # reported by the local system clock. All other intervals are calculated from the
  # Unix epoch. Defaults to disabled.
  #interval: 0

# Set to true to log messages in json format.
#logging.json: false
============================================================

```

I dont see anything in /var/log/

**Fresh install or upgraded from other version?**

**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.

**Description of the problem including expected versus actual behaviour. Please include screenshots (if relevant)**:

**Steps to reproduce** :

1. enabled logging in the apm-server.yml file with above configuration.
2. 
3. 

**Errors in browser console (if relevant)**:

**Provide logs and/or server output (if relevant)**:

---

<div class="post-metadata">

### Author: ![gil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gil/32/41911_2.png) [@gil](https://discuss.elastic.co/u/gil)
#### Post date: [August 19, 2019, 4:34pm UTC](https://discuss.elastic.co/t/apm-server-logs-not-being-generated/195776/2 "2019-08-19T16:34:11Z")

</div>

Is apm-server [running under systemd](https://www.elastic.co/guide/en/apm/server/current/running-with-systemd.html)? If so, the logs are in the systemd jourrnal viewable with `journalctl -u apm-server`.

Is this related to your [other discuss post](https://discuss.elastic.co/t/apm-server-connecting-to-elasticsearch-even-though-my-output-is-only-enabled-for-kafka/195614/4) or a separate issue?

---

<div class="post-metadata">

### Author: ![Vishnu\_Singhal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishnu_singhal/32/52488_2.png) [@Vishnu\_Singhal](https://discuss.elastic.co/u/Vishnu_Singhal)
#### Post date: [August 19, 2019, 6:49pm UTC](https://discuss.elastic.co/t/apm-server-logs-not-being-generated/195776/3 "2019-08-19T18:49:26Z")

</div>

No.. I'm running with ./apm-server

---

<div class="post-metadata">

### Author: ![Vishnu\_Singhal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishnu_singhal/32/52488_2.png) [@Vishnu\_Singhal](https://discuss.elastic.co/u/Vishnu_Singhal)
#### Post date: [August 23, 2019, 12:29pm UTC](https://discuss.elastic.co/t/apm-server-logs-not-being-generated/195776/4 "2019-08-23T12:29:21Z")

</div>

Can anyone share on this ?

---

<div class="post-metadata">

### Author: ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)
#### Post date: [August 23, 2019, 1:04pm UTC](https://discuss.elastic.co/t/apm-server-logs-not-being-generated/195776/5 "2019-08-23T13:04:19Z")

</div>

Have you checked that apm-server has proper permissions to write to the configured path in `/var/log`?

---

<div class="post-metadata">

### Author: ![Vishnu\_Singhal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishnu_singhal/32/52488_2.png) [@Vishnu\_Singhal](https://discuss.elastic.co/u/Vishnu_Singhal)
#### Post date: [August 23, 2019, 1:05pm UTC](https://discuss.elastic.co/t/apm-server-logs-not-being-generated/195776/6 "2019-08-23T13:05:52Z")

</div>

yes. i have checked it

---

<div class="post-metadata">

### Author: ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)
#### Post date: [August 23, 2019, 1:46pm UTC](https://discuss.elastic.co/t/apm-server-logs-not-being-generated/195776/7 "2019-08-23T13:46:26Z")

</div>

Have you ensured to start apm-server with `./apm-server` without providing the `-e` flag?

---

<div class="post-metadata">

### Author: ![Vishnu\_Singhal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishnu_singhal/32/52488_2.png) [@Vishnu\_Singhal](https://discuss.elastic.co/u/Vishnu_Singhal)
#### Post date: [August 23, 2019, 2:18pm UTC](https://discuss.elastic.co/t/apm-server-logs-not-being-generated/195776/8 "2019-08-23T14:18:05Z")

</div>

./apm-server -e -d "\*" -c apm-server.yml using this command.

---

<div class="post-metadata">

### Author: ![Vishnu\_Singhal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishnu_singhal/32/52488_2.png) [@Vishnu\_Singhal](https://discuss.elastic.co/u/Vishnu_Singhal)
#### Post date: [August 23, 2019, 2:37pm UTC](https://discuss.elastic.co/t/apm-server-logs-not-being-generated/195776/9 "2019-08-23T14:37:34Z")

</div>

Thank it solved the problem. can it log to console also . Im trying on kubernetes.

---

<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: [September 13, 2019, 10:37am UTC](https://discuss.elastic.co/t/apm-server-logs-not-being-generated/195776/10 "2019-09-13T10:37:40Z")

</div>

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