Where are syslog files?
So if I run journalctl
I see loads of kernel based commands but if I look at /var/log/syslog
it is empty. I would like to setup swatch to monitor the journal but I ultimately need to know where the log is actually located. Am I missing something?
16.04 syslog
add a comment |
So if I run journalctl
I see loads of kernel based commands but if I look at /var/log/syslog
it is empty. I would like to setup swatch to monitor the journal but I ultimately need to know where the log is actually located. Am I missing something?
16.04 syslog
1
Maybe syslog service is stopped. Typesudo systemctl status syslog
to see if it's running. If it's running,cat /etc/rsyslog.d/50-default.conf
to see where it is saving log files.
– Redbob
Oct 12 '17 at 13:09
add a comment |
So if I run journalctl
I see loads of kernel based commands but if I look at /var/log/syslog
it is empty. I would like to setup swatch to monitor the journal but I ultimately need to know where the log is actually located. Am I missing something?
16.04 syslog
So if I run journalctl
I see loads of kernel based commands but if I look at /var/log/syslog
it is empty. I would like to setup swatch to monitor the journal but I ultimately need to know where the log is actually located. Am I missing something?
16.04 syslog
16.04 syslog
edited Oct 14 '18 at 10:00
abu_bua
3,26681026
3,26681026
asked Oct 12 '17 at 12:17
Antony
10626
10626
1
Maybe syslog service is stopped. Typesudo systemctl status syslog
to see if it's running. If it's running,cat /etc/rsyslog.d/50-default.conf
to see where it is saving log files.
– Redbob
Oct 12 '17 at 13:09
add a comment |
1
Maybe syslog service is stopped. Typesudo systemctl status syslog
to see if it's running. If it's running,cat /etc/rsyslog.d/50-default.conf
to see where it is saving log files.
– Redbob
Oct 12 '17 at 13:09
1
1
Maybe syslog service is stopped. Type
sudo systemctl status syslog
to see if it's running. If it's running, cat /etc/rsyslog.d/50-default.conf
to see where it is saving log files.– Redbob
Oct 12 '17 at 13:09
Maybe syslog service is stopped. Type
sudo systemctl status syslog
to see if it's running. If it's running, cat /etc/rsyslog.d/50-default.conf
to see where it is saving log files.– Redbob
Oct 12 '17 at 13:09
add a comment |
1 Answer
1
active
oldest
votes
Take a look at the /var/log
directory.
Kernel messages can be found in /var/log/kern.log
You are welcome to take a look at the manuals or wikis:
https://help.ubuntu.com/community/LinuxLogFiles
As @Redbob stated, the location of the saved log files can be found in the /etc/rsyslog.d/50-default.conf
file:
cat /etc/rsyslog.d/50-default.conf
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f964257%2fwhere-are-syslog-files%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Take a look at the /var/log
directory.
Kernel messages can be found in /var/log/kern.log
You are welcome to take a look at the manuals or wikis:
https://help.ubuntu.com/community/LinuxLogFiles
As @Redbob stated, the location of the saved log files can be found in the /etc/rsyslog.d/50-default.conf
file:
cat /etc/rsyslog.d/50-default.conf
add a comment |
Take a look at the /var/log
directory.
Kernel messages can be found in /var/log/kern.log
You are welcome to take a look at the manuals or wikis:
https://help.ubuntu.com/community/LinuxLogFiles
As @Redbob stated, the location of the saved log files can be found in the /etc/rsyslog.d/50-default.conf
file:
cat /etc/rsyslog.d/50-default.conf
add a comment |
Take a look at the /var/log
directory.
Kernel messages can be found in /var/log/kern.log
You are welcome to take a look at the manuals or wikis:
https://help.ubuntu.com/community/LinuxLogFiles
As @Redbob stated, the location of the saved log files can be found in the /etc/rsyslog.d/50-default.conf
file:
cat /etc/rsyslog.d/50-default.conf
Take a look at the /var/log
directory.
Kernel messages can be found in /var/log/kern.log
You are welcome to take a look at the manuals or wikis:
https://help.ubuntu.com/community/LinuxLogFiles
As @Redbob stated, the location of the saved log files can be found in the /etc/rsyslog.d/50-default.conf
file:
cat /etc/rsyslog.d/50-default.conf
edited Oct 14 '18 at 10:03
answered Oct 14 '18 at 0:49
abu_bua
3,26681026
3,26681026
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f964257%2fwhere-are-syslog-files%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Maybe syslog service is stopped. Type
sudo systemctl status syslog
to see if it's running. If it's running,cat /etc/rsyslog.d/50-default.conf
to see where it is saving log files.– Redbob
Oct 12 '17 at 13:09