Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packages using systemd should log to /var/log/kibana #6579

Closed
LeeDr opened this issue Mar 18, 2016 · 15 comments · Fixed by #74896
Closed

Packages using systemd should log to /var/log/kibana #6579

LeeDr opened this issue Mar 18, 2016 · 15 comments · Fixed by #74896
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team

Comments

@LeeDr
Copy link

LeeDr commented Mar 18, 2016

On Ubuntu 15.10 I installed http://download.elasticsearch.org/kibana/kibana-snapshot/kibana_4.5.0-snapshot_amd64.deb and did not get a /var/log/kibana directory created. Kibana logs are going in /var/log/syslog instead. I know they were going into /var/log/kibana at one time.

@LeeDr LeeDr added P2 bug Fixes for quality problems that affect the customer experience labels Mar 18, 2016
@spalger
Copy link
Contributor

spalger commented Mar 18, 2016

Any idea when this was introduced?

@LeeDr
Copy link
Author

LeeDr commented Mar 18, 2016

I'm not sure, but I had a script on my Ubuntu VM that had previously worked and it was checking the log like this;
grep "plugin:elasticsearch.*green" /var/log/kibana/kibana.stdout

So I know at one time it did. OHHH, but at one point I was doing the steps to add the repo and doing apt-get install kibana but now I've done dpkg -i <the .deb file>. So maybe that doesn't do the same steps?

But I'm installing elasticsearch the same dpkg way and it IS writing logs to /var/log/elasticsearch/

@jbudz
Copy link
Member

jbudz commented Mar 30, 2016

@LeeDr are you using systemd? It has a built in logger that's used instead. journalctl -u kibana.service

@LeeDr
Copy link
Author

LeeDr commented Mar 30, 2016

Ah yes, you're right. I think we're OK to close this. Just wondering if there's any docs referring to /var/log/kibana that need any adjustment now or soon. In my case, I upgraded my Ubuntu to 15.10 because that's where the jdk 8 is supported and that's required for the 5.0 release.

@jbudz
Copy link
Member

jbudz commented Mar 30, 2016

Just took a look around and didn't see any references. I'm going to close this for now, we can reopen if something comes up.

@jbudz jbudz closed this as completed Mar 30, 2016
@cwurm
Copy link
Contributor

cwurm commented Feb 1, 2017

I helped some folks set up Elastic lately and installing Kibana 5.1 with the .deb on Ubuntu 16.04 using systemd also led to Kibana logging into /var/log/syslog.

Given that Elasticsearch is logging nicely into /var/log/elasticsearch it would be nice to have consistency across the stack.

Re-opening this as @jbudz suggested - I'm also happy to open a new issue, let me know.

@cwurm cwurm reopened this Feb 1, 2017
@spalger spalger added the Team:Operations Team label for Operations Team label Feb 8, 2017
@Bargs
Copy link
Contributor

Bargs commented Feb 13, 2017

I agree with @cwurm. I ran into the same issue testing 5.3. In fact our current docs say:

information will be written in the log files located in /var/log/kibana/

Which appears to be false. There's no mention of journalctl on the page at all.

@epixa epixa removed the P2 label Apr 25, 2017
@jbudz jbudz changed the title kibana 4.5.0 .deb package install doesn't create /var/log/kibana Packages using systemd should log to /var/log/kibana Jul 17, 2017
@PhaedrusTheGreek
Copy link
Contributor

PhaedrusTheGreek commented Aug 16, 2017

Seeing the same thing in 5.5. under Centos 7 / Systemd. There's no /var/log/kibana directory, and logs are going to /var/log/messages

@dadoonet
Copy link
Member

Can we fix the docs in the meantime? https://www.elastic.co/guide/en/kibana/current/deb.html#deb-running-systemd

May be advice using sudo journalctl -f instead?

@prupert
Copy link

prupert commented Feb 6, 2018

It appears that #16372 will fix this issue, this will make packaged Kibana installations log to /var/log/kibana, yay!

@dspruell
Copy link

I'm not totally clear on what the status of this issue is, couldn't tell if #16372 was merged before being closed. In any case I'm still seeing the issue with Kibana 6.2.4 from the Elastic APT repo. Upon startup using systemd on Debian 9 there is no logging to /var/log/kibana and no mention of the log path in the installed /etc/kibana/kibana.yml. There is logging visible from jounalctl(1) and in var/log/syslog. I agree with @cwurm that consistency across all the stack with each component having their own dedicated log directories would be ideal so it would be nice to have reality match what is documented (as opposed to vice versa).

@jbudz
Copy link
Member

jbudz commented May 18, 2018

16372 was closed, and this issue is still valid.

@deepybee
Copy link

This is also affecting RPM builds, which are pushing to /var/log/messages when spawned with systemd.

@deepybee
Copy link

This is from an RPM build, but it seems our systemd build jobs make no explicit statement on default log path;

ExecStart=/usr/share/kibana/bin/kibana "-c /etc/kibana/kibana.yml"

Contrastingly, our init scripts explicitly redirect console output as expected:

  # Run the program!

  chroot --userspec "$user":"$group" "$chroot" sh -c "

    cd \"$chdir\"
    exec \"$program\" $args
  " >> /var/log/kibana/kibana.stdout 2>> /var/log/kibana/kibana.stderr &

fkellner pushed a commit to fkellner/kibana that referenced this issue Oct 8, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
elastic#6579
spalger pushed a commit that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
#6579
spalger pushed a commit to spalger/kibana that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
elastic#6579
spalger pushed a commit to spalger/kibana that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
elastic#6579
spalger pushed a commit to spalger/kibana that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
elastic#6579
spalger pushed a commit to spalger/kibana that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
elastic#6579
spalger pushed a commit to spalger/kibana that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
elastic#6579
spalger pushed a commit to spalger/kibana that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
elastic#6579
spalger pushed a commit to spalger/kibana that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
elastic#6579
spalger pushed a commit to spalger/kibana that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
elastic#6579
spalger pushed a commit that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
#6579
spalger pushed a commit that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
#6579
spalger pushed a commit that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
#6579
spalger pushed a commit that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
#6579
spalger pushed a commit that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
#6579
spalger pushed a commit that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
#6579
spalger pushed a commit that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
#6579
spalger pushed a commit that referenced this issue Nov 22, 2019
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
#6579
@archon810
Copy link

I installed Kibana from a package manager on OpenSUSE 15.1, and it didn't log to /var/log/kibana by default. In fact, it didn't even create the directory. It also didn't create /var/log/kibana.log when I manually specified the log destination, and I had to touch and chown the file myself before it started working.

What am I missing?

Kibana 7.6.2 from https://artifacts.elastic.co/packages/7.x/yum.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.