influxdata / influxdata/kapacitor
Permission Issue in DEB package for log file
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 479
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
The main log file `kapacitor.log` is currently assigned ownership to the `kapacitor` user. However, the `kapacitor.err` is assigned onwership to the `root` user. Since our other projects use `root`, we should make it consistent and use `root` for the log as well.
## Kapacitor Logs
```
ubuntu@ip-172-30-2-95:~$ ls -l /var/log/kapacitor/
total 200
-rw-r--r-- 1 root root 74 Oct 27 19:18 kapacitord.err
-rw-r----- 1 kapacitor kapacitor 192829 Oct 27 20:32 kapacitor.log
```
## Influxdb logs
```
ubuntu@ip-172-30-2-95:~$ ls -l /var/log/influxdb/
total 196
-rw-r--r-- 1 root root 194273 Oct 27 20:38 influxd.log
```
## Telegraf logs
```
ubuntu@ip-172-30-2-95:~$ ls -l /var/log/telegraf/telegraf.log
-rw-r--r-- 1 root root 139823 Oct 27 20:38 /var/log/telegraf/telegraf.log
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the DEB package configuration that creates /var/log/kapacitor/kapacitor.log and compare it with kapacitord.err and the InfluxDB and Telegraf package logs shown here. Update the package so kapacitor.log is owned by root, then install or inspect the package to verify the resulting ownership.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- release
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100