An administrator needs to look at a log for an application on a systemd-based system. There is no log for this application in /var/log. Which of the following is another way to view the application log on this system?
Let's go ahead and review some log files in the plaintext format. Run the command below to print the contents of the /var/log/syslog file with the tail utility:
sudo tail /var/log/syslog
journalctl may be used to query the contents of the systemd(1)
journal as written by systemd-journald.service(8).
If called without parameters, it will show the full contents of
the journal, starting with the oldest entry collected
Basic Log Viewing
To see the logs that the journald daemon has collected, use the journalctl command.
When used alone, every journal entry that is in the system will be displayed within a pager (usually less) for you to browse
systemctl may be used to introspect and control the state of the
"systemd" system and service manager. Please refer to systemd(1)
for an introduction into the basic concepts and functionality
this tool manages.
Short one that I've been unable to find a decent answer for.
Centos 5.10 server, trying to trawl through all the logs I can to see what IPs successfully accessed the server. I've been mucking about with /var/log/secure and /var/log/audit/audit.log.
Most interesting thing I found was from the /root/.bash_history, grepping through a few suspect directories and files for a specific IP but I want to be sure exactly what IPs have accessed the server via ssh.
TL;DR:
Does /var/log/secure log ssh successes or is there some other file on centos systems that do?
This section is not available anymore. Please use the main Exam Page.XK0-004 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
jahute27
Highly Voted 4 years, 5 months agoalfre
Highly Voted 4 years, 4 months agoDiaaEmara
Most Recent 2 years, 5 months agoDiaaEmara
2 years, 5 months agoDiaaEmara
2 years, 5 months agoDiaaEmara
2 years, 5 months agoDiaaEmara
2 years, 5 months agoDiaaEmara
2 years, 5 months agoDiaaEmara
2 years, 5 months agoexamtopics_htc
2 years, 6 months agogiannisae
4 years, 4 months ago