Question

Project 10-3 In this hands-on project, you view the configuration of the System Log Daemon and...

Project 10-3

In this hands-on project, you view the configuration of the System Log Daemon and the logrotate

utility on Ubuntu Server Linux.

1. Boot your Ubuntu Server Linux virtual machine. After your Linux system has been

loaded, log into tty1 using the user name of root and the password of LNXrocks!.

2. At the command prompt, type ls –l /dev/log and press Enter. What is the file type?

Which daemon on Ubuntu Server Linux uses this file and what is its purpose?

3. At the command prompt, type less /etc/rsyslog.conf and press Enter to view

the configuration file for the System Log Daemon. Are there any entries that specify

facilities, priorities, or log file locations? What does the last line of the file specify?

Press q when finished to quit the less utility.

4. At the command prompt, type less /etc/rsyslog.d/50-default.conf and

press Enter. Where do kernel messages of any priority get logged to by default? What

does the – character next to the filename indicate? Press q when finished to quit the

less utility.

5. At the command prompt, type tail /var/log/kern.log and press Enter. Observe

the entries.

6. At the command prompt, type ls /var/log/cups and press Enter. What daemon creates

the log files within the /var/log/cups directory?

7. At the command prompt, type cat /etc/cron.daily/logrotate and press Enter

to observe the logrotate command that is run each day.

8. At the command prompt, type less /etc/logrotate.conf and press Enter to view

the configuration file for the logrotate command. How many copies of old log files

are kept by default? When finished, press q to quit the less utility.

9. At the command prompt, type ls /etc/logrotate.d and press Enter. How many

files are in this directory? Will entries in these files override the same entries in /etc/logrotate.conf?

10. At the command prompt, type cat /etc/logrotate.d/cups-daemon and press

Enter. How many copies of old log files are kept for the log files in the /var/log/cups

directory? Will the log files be rotated if they contain no contents?

11. Type exit and press Enter to log out of your shell.

Homework Answers

Answer #1

Answer 2
*************

its symbolic file used for logging socket connections , systemd-journald is a system service that collects and stores logging data. he daemon will implicitly collect numerous metadata fields for each log messages in a secure and unfakeable way.

Answer 3
**********

$IncludeConfig /etc/rsyslog.d/*.conf

it includes the file of all the conf extension

log file location = /etc/rsyslog.d/*.conf

Answer 4
**********

/var/log/kern.log
Using - as a filename to mean stdin/stdout is a convention that a lot of programs use. It is not a special property of the filename. The kernel does not recognise - as special so any system calls referring to - as a filename will use - literally as the filename.

WE ARE ALLOWED TO ATTEND FIRST 4 QUESTION BUT I DID MORE FOR YOU IF YOU NEED TO SOLVE ALL REMAINING POST IN ANOTHER THREAD. THANKS

if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and i can edit and change the answers if you argue, thanks :)

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1. Switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and log in to the terminal...
1. Switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and log in to the terminal using the user name of root and the password of LINUXrocks!. 2. At the command prompt, type vi diskconfig.sh and press Enter to open a new file for editing called diskconfig.sh in your home directory. Why is it good form to use a .sh extension for shell scripts? 3. Enter the following text into the diskconfig.sh file. As you are typing the contents, ensure...
Time: 10 minutes Objective: Create, view and extract tar archives. Description:  In this activity, the student will...
Time: 10 minutes Objective: Create, view and extract tar archives. Description:  In this activity, the student will use the tar utility to create, view, and extract a tar archive and use it options to name the tar file and view files as they are being archived and extracted. 1.     Start your Linux server virtual machine and sign-on with your individual user ID.  All Activities should begin in your home directory. 2.    Create a directory by typing  mkdir Act6-1 and press Enter.  Switch to this new directory...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and the output in a word document and submit it. Part1: 1. Log in to Linux using your user account name and password. 2. If you logged in using a graphical login screen, open a terminal window by clicking on the icon in the lower left corner of the desktop to open the main menu, then selecting System Tools, then Terminal. A terminal window opens....
Chapter 8: Searching, Extracting, and Archiving Data Exercise 8.a: Using grep, find, and regular expressions (Objective...
Chapter 8: Searching, Extracting, and Archiving Data Exercise 8.a: Using grep, find, and regular expressions (Objective 3.2) Linux Distribution: Fedora (non-root user & password needed) Desktop Environment: GNOME 3 1.   If you have not already done so, boot up your computer (or virtual machine) to start the Fedora Linux distribution. 2.   When the machine has booted up, access the tty2 virtual terminal by pressing Ctrl+Alt+F2. 3.   Log on to a regular user’s account by typing in the username at the...
1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of...
1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of the separation is that they are not displayed by the default version of the ls command)                         a. the prefix "rc" (rc.filename)               c. the extension .cfig                         b. a dot (.) at the beginning                    d. by having the SUID bit set 2. The IP address which is reserved for local loopback (equivalent to "localhost") is:                         a. 255.255.255.0                                   c. 192.168.70.1...
can you please do this lab? use lunix or C program its a continuation of a...
can you please do this lab? use lunix or C program its a continuation of a previous lab. the previous lab: Unix lab 4: compile and link multiple c or c++ files Please do the following tasks step by step: create a new directory named by inlab4 enter directory inlab4 create a new file named by reverse.c with the following contents and then close the file: /*reverse.c */ #include <stdio.h> reverse(char *before, char *after); main() {       char str[100];    /*Buffer...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT