confluentinc / confluentinc/ksql

Ksql Logs not generating in ksql.log.dir

Open
#3,946 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
315
Forks
1k
Avg merge
1d 7h
Merged PRs (30d)
36

Description

Ksql is not writing the main ksql logs in the LOG_DIR. Confluent version used 5.3.0

```
# grep LOG_DIR ksql-server-start
LOG_DIR="/apps/logs/ksql"
# ls -lrt /apps/logs/ksql/
total 24
-rw-rw-r--. 1 kadmin kadmin 6952 Nov 21 13:45 ksql-server-gc.log.0.current
```
I see the gc logs but no other logs are generating their. I am starting the ksql as systemmd process and the service please find the service file below. ( even i tried giving the LOG_DIR in the env variable still its not working)
```
[Unit]
Description=Apache Ksql
Documentation=http://kafka.apache.org/documentation.html
Requires=network.target remote-fs.target
After=network.target remote-fs.target autofs.target zookeeper.target kafka.target schema-registry.target

[Service]
Type=simple
User=kadmin
Group=kadmin
Environment="LOG_DIR=/apps/logs/ksql"
ExecStart=/apps/kafka/bin/ksql-server-start /apps/kafka/etc/ksql/ksql-server.properties
ExecStop=/apps/kafka/bin/ksql-server-stop
TimeoutStopSec=180
Restart=no

[Install]
WantedBy=multi-user.target

```

Contributor guide

Open the contributing guide

Research direction

Start with the ksql-server-start script and the supplied systemd service definition, then inspect how LOG_DIR is passed when launching ksql-server.properties. Reproduce the service startup and compare the generated ksql-server-gc.log with the missing main log; done means identifying the cause and documenting or verifying the expected log location.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kafka
Domain
observability-sre, stream-processing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.