Advice 1: How to clean the logs

Today, the operating systems include special service, using which applications and system programs can save information about their work in special journals. These logs called logs. For security purposes, or for reasons of economy of disk space sometimes you need to clean the logs.
How to clean the logs
You will need
  • - administrator or root on the local machine.
Instruction
1
Select a section of Windows logs, which must be cleaned. Click on the icon "My computer" on the desktop and select "Manage..." context menu. Or activate the shortcut "computer Management" located in the folder "Administration" (it is possible to switch from the Windows "control Panel", open with the appropriate item under "settings" menu, "start"). This will launch the MMC console.

In the tree "computer Management (local)" expand "Utility" and "event Viewer". Highlight the sub-points and view the logs. Determine which sections you need to clean.
How to clean the logs
2
Clean the Windows logs. Select one of the items in the "event Viewer" selected in the first step. To do this, click on it with the left mouse button. Expand the "Action" of the main application menu or open the shortcut menu by clicking the right button. Select "clear all events". You will be prompted to save the preliminary data to be deleted. If necessary, click "Yes" and save the events to an external log file. Next, the logs are cleared.
How to clean the logs
3
In operating systems Linux or FreeBSD find the log files that are serviced by the syslogd service that you want to delete. Open the file /etc/syslog.conf. Check it out. Get the path to the log files needed subsystems or applications.
How to clean the logs
4
Stop the syslogd service. Start a session as root. To do this, switch to text console, or start the terminal emulator. Login with your credentials or start a root session with su command. Execute the console command:
service syslogd stop
Be sure to stop the service.
How to clean the logs
5
Clean the logs. Command redirection will overwrite the contents of the log files found in the third step, data of zero length. For example, to clear the /var/log/syslog/messages, run the command:
> /var/log/syslog/messages

Run service syslogd with the command:
service syslogd start
Wait until the process running the service.
How to clean the logs

Advice 2: How to view saved logs

Logs call data accumulated in the process of operation of application and system software. As a rule, they entered the service information relating to emergency situations and failures. So often to identify the causes of failures in applications and subsystems need to view the saved logs.
How to view saved logs
You will need
  • - administrative rights on the local machine.
Instruction
1
View logs that are saved in the Windows event log. Launch an MMC console. To do this, click the right mouse button on the icon "My computer" located on your desktop and select "Manage..." context menu. You can also open the folder "control Panel", using the appropriate section "settings" menu "start". Next you need to navigate to the folder "Admin" using the program's shortcut, and then open "computer Management".

In the left pane of the opened window expand the "Utility" and "event Viewer". Select one of the sub-paragraphs. In the right part of the window will display the logs of the selected partition. For more information on a specific item, double-click it with the mouse.
How to view saved logs
2
Review the logs stored in external log file Windows. If necessary, open the window "computer Management" as it was described in the first step. In the left pane, expand "utilities". Expand and select "event Viewer". Click right mouse button or open the "Action" of the main menu. Click on "Open log file".

In the displayed dialog, navigate to the directory in which the file resides Windows event log. Select it in the listing. In the drop-down list of "log Type" select one of the elements ("Security", "Application", "System"). If necessary, change the name in the text field "display name". Click "Open". Review the loaded magazine, highlighting the added item in the left pane of the window.
How to view saved logs
3
Find one of the system log files, syslogd serviced by the service in operating systems Linux or FreeBSD. Go to the directory /etc and open in the viewer the syslog file.conf (for this in most cases requires access rights user group adm or root). Analyze the contents of the file. Find out the file paths of the logs to which messages are added you are interested in subsystems and services.
How to view saved logs
4
View the saved logs in the OS family of Linux or FreeBSD. Open the file, the path to which was specified in the previous step, in the viewer. For this, you'll likely need the permissions for the group adm or root. You can also use tail to display the last few lines of logs in the console. For example:
tail-n 15 /var/log/messages
This command is very useful for fast viewing of recent events added to the log.
How to view saved logs

Advice 3: How to view the logs

Operating system Windows 7 every event that happens to one of the files on your hard disk appears in the corresponding document, namely in the "event Log". Launch this app through the management console.
How to view the logs
You will need
  • Operating system Windows 7.
Instruction
1
"Event log" you can view the applet using the "event Viewer". To run this application, you need to open "start menu", then choose "control Panel". In the opened window click on "administrative tools" and select from the list the appropriate application. Also this program can be done via the applet "Execute": press the key combination Win + R, type eventvwr.msc and press Enter.
2
All events that occur in the operating system can be divided into system and software. After you run this applet you can see 2 categories: application logs, and Windows journal. In each of these categories there are event files, i.e. log files. They are located at the following location: %System directory%System32\Winevt\Logs. Instead of the system folder you need to put the path C:/Windows or the other.
3
To open log files with a text editor, as well as through the applet itself "event Viewer". To do this, open the top menu "Action" and select "Open saved log". In the opened window locate the file, highlight it and click "Open".
4
Here you can create a new directory where you will put the required log files. Click "new folder" and enter the folder name in the empty field "Name". Click OK to create the directory and close the current window. The future location of the new directory — section "Saved logs".
5
To open the log file with a text editor, you must go to the directory, select the file and press the right mouse button on a text document with the extension log. In the context menu click "Open with" and select any text editor, such as Notepad or WordPad.
Search
Is the advice useful?