Define list of log types and their locations

Assignment Help Computer Networking
Reference no: EM131516264

Question: Syslog

Earlier in this chapter, you viewed and manipulated log file entries on a computer running Windows. In this project, you do the same on a computer running the Linux operating system. Because Linux versions vary in the type of GUI application that allows you to open the system log, this exercise uses the command-line method instead. For this exercise, you need a computer with a Linux operating system installed, such as the Ubuntu Desktop VM that you created in Chapter 2. It need not be connected to a network, but for best results, it should be a computer that has been used in the past and not a fresh install. You must be logged on to the Linux computer as a user with administrator privileges.

1. If you are not already at a command-line (or shell) prompt, open a terminal session now.

2. The syslog file contains information similar to that shown in Figure 9-24. The first step in viewing your Linux computer's system log is to find out where the file is located. Try each of these commands until you find the syslog file that contains information similar to that in Figure 9-24

more /etc/syslog.conf

more/etc/rsyslog.conf

more/etc/rsyslog.d/50-default.conf

3. The first part of the syslog file appears. In this part of the file, you should see a list of log types and their locations, similar to the listing shown in Figure 9-24. (If you don't see the listing in this part of the file, press the Enter key until you do see it.)

2079_9-24.png

4. Write down the location and filename of the file that logs all events, as indicated by *.* in the first column. (For example, it might be /var/log/syslog or /var/adm/ messages.)

5. Press the Spacebar enough times to view the entire log configuration file and return to the command prompt.

6. Now that you know the name and location of your system log, you can view its messages. At the command prompt, type tail /var/log/syslog if your log file is at / var/log/syslog; if your log file is at /var/adm/messages, type tail /var/ adm/messages. Then press Enter.

7. The last 10 lines of your log file appear (assuming it is at least 10 lines long). What types of messages are recorded? When did the events occur?

8. Next you'll find out all the types of log files your computer saves. Type cd /var/log if your log file is in the /var/log directory, or type cd /var/adm if your log file is in the /var/adm directory. Then press Enter. You have changed your working directory to the same directory where log files are kept.

9. To view a listing of the directory's contents, type ls -la and press Enter. Notice the types of log files that appear in this directory.

10. Suppose you want to find every message in the system log file that pertains to DHCP addressing. At the command prompt, type grep DHCP syslog if your log file is named syslog or grep DHCP messages if your log file is named messages. Then press Enter. A list of messages containing the term DHCP appears. Consider how you might use grep and other UNIX commands in a script that would notify you each time a workstation on your network failed to obtain a DHCP-assigned IP address. (Note that this can be accomplished from most GUI system log interfaces, too.)

11. If your operating system is configured to start a new log file each day or each time the computer is restarted, your log file might be brief. Repeat Step 9 and, this time, look for other versions of the syslog or messages file in your working directory. For example, Ubuntu Linux will save older system messages in a file called syslog.0. If you find a larger, older log file, repeat Step 10 using this log file's name. How do the results differ?

12. Close the Linux terminal session window.

Reference no: EM131516264

Questions Cloud

Discuss the snmp service : Windows contains an embedded SNMP service, but it's not enabled by default. In this project, you turn the SNMP service on, configure the service to start.
The interviewee integrate career counseling : How does the interviewee integrate career counseling into his or her practice?What inventories or assessments does the person use.
Create an account as a first-time user : OpManager by ManageEngine The free version of ManageEngine's OpManager provides tools for monitoring activity and performance on a small network.
What blaming people for various illnesses : What have you learned about what blaming people for various illnesses and perceived weaknesses says about the society.
Define list of log types and their locations : Earlier in this chapter, you viewed and manipulated log file entries on a computer running Windows. In this project, you do the same on a computer running.
Discuss about the humanistic and existential aspects : Describe a topic that you found particularly interesting during that week and what made it interesting.
Effects the issues have on the field of psychology : Definitions of the issues.Populations most affected by the issues- 2 slides each Managed Health care and prescription privileges.
Explore critical insights that were shared by your peers : Explore critical insights that were shared by your peers and/or your instructor on the topic chosen and begin your search for scholarly sources.
The historical developments : Select a specific substance and reflect on the historical developments that have contributed to its abuse.

Reviews

Write a Review

Computer Networking Questions & Answers

  Networking and types of networking

This assignment explains the networking features, different kinds of networks and also how they are arranged.

  National and Global economic environment and ICICI Bank

While working in an economy, it has a separate identity but cannot operate insolently.

  Ssh or openssh server services

Write about SSH or OpenSSH server services discussion questions

  Network simulation

Network simulation on Hierarchical Network Rerouting against wormhole attacks

  Small internet works

Prepare a network simulation

  Solidify the concepts of client/server computing

One-way to solidify the concepts of client/server computing and interprocess communication is to develop the requirements for a computer game which plays "Rock, Paper, Scissors" using these techniques.

  Identify the various costs associated with the deployment

Identify the various costs associated with the deployment, operation and maintenance of a mobile-access system. Identify the benefits to the various categories of user, arising from the addition of a mobile-access facility.

  Describe how the modern view of customer service

Describe how the greater reach of telecommunication networks today affects the security of resources which an organisation provides for its employees and customers.

  Technology in improving the relationship building process

Discuss the role of Technology in improving the relationship building process Do you think that the setting of a PR department may be helpful for the ISP provider? Why?

  Remote access networks and vpns

safekeeping posture of enterprise (venture) wired and wireless LANs (WLANs), steps listed in OWASP, Securing User Services, IPV4 ip address, IPV6 address format, V4 address, VPN, Deploying Voice over IP, Remote Management of Applications and Ser..

  Dns

problems of IPV, DNS server software, TCP SYN attack, Ping of Death, Land attack, Teardrop attack, Smurf attack, Fraggle attack

  Outline the difference between an intranet and an extranet

Outline the difference between an intranet and an extranet A programmer is trying to produce an applet with the display shown in Figure 1 below such that whenever one of the checkboxes is selected the label changes to indicate correctly what has..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd