Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux System Getting Started Learning: The Linux log     - Ubuntu installation 2.10.x version of Scala (Linux)

- Oracle Execute to Parse perform analytical Ratio Analysis (Database)

- How to clear the v $ archived_log view expiration information (Database)

- PCM audio under Linux (Linux)

- LAMP and LNMP automated installation scripts (Server)

- Using BBED repair ORA-01190 error (Database)

- C # dynamic class notes --- (Dynamic) Applications (Programming)

- Use dump restore mode fast backup and recovery system FreeBSD (Linux)

- Android application simulates the phone keypad (Programming)

- RPM package fabrication method (Linux)

- Java logging performance of those things (Programming)

- Linux installation beautify early experience (Linux)

- Python, and / or (Programming)

- Java heap (Heap) and stack difference (Programming)

- DNF Command Tutorial (Linux)

- Configure shared library PCRE (Linux)

- Windows Server 2012 R2 Datacenter install SQL Server 2016 CTP (Database)

- Keepalived achieve high availability Nginx Reverse Proxy (Server)

- Linux system security knowledge (Linux)

- CentOS 6.6 install JDK7 (Linux)

  Linux System Getting Started Learning: The Linux log
  Add Date : 2018-11-21      
  Linux in the log for connection time, generally by / var / log / wtmp and / var / run / utmp file records the two, but both files can not directly use cat to view, and the file is automatically updated by the system, we can by w, who, finger, id, last, lastlog, ac command to view it.

Linux in the log for monitoring the process, said first process monitoring log monitor the user's operation instruction is very effective when the server recently discovered often happens for no reason or for no reason downtime being deleted files and so on, through the use of statistical process logs View. We use accton / var / account / pacct to open the log monitoring process statistics, we can see the process to use lastcomm statistics log situation.

Linux in the log by a service called syslog service management, such as syslog logging service drive a lot of files, such as / var / log / lastlog record is the last time the user successfully landed, the landing of IP information, and / var / log / messages are recorded Linux operating system, common systems and services error message, and / var / log / secure is recorded Linux system security log records users and groups transform, the user login authentication information, and / var / log / btmp login failure is recorded Linux user, time, and the remote IP address, and / var / log / cron is the implementation of the plan of record tasks.

The syslog service consists of two important configuration files control and management, which are the main configuration file /etc/syslog.conf and / etc / sysconfig / syslog auxiliary profile and /etc/init.d/syslog is a startup script.

When the system works to a certain time, the log file with time and increase traffic while more and more, the log file will be growing, when the log file exceeds the scope of the control system when the system will be performance impact. Dump can be set to annually dump dump monthly, weekly dumps, dumps up to a certain size.

On Linux systems, we often use logrotate to dump logs, combined with cron scheduled task, you can easily dump dump way of setting log files have /etc/logrotate.conf profile control.
- MySQL monitoring tools -orzdba (Database)
- Use Mop monitor stock prices at the Linux command line (Linux)
- How to convert images, audio and video formats on Ubuntu (Linux)
- Apache POI Excel Document Processing (Linux)
- By way of a binary installation innobackupex (Database)
- Binding unofficial Google Drive and Ubuntu 14.04 LTS (Linux)
- Oracle 11g new features of the collection of multi-column statistics (Database)
- CentOS system dual network card IP information configuration (Linux)
- Linux Security Module (LSM) Introduction (Linux)
- Why HBase need to build SQL engine layer (Database)
- C / C ++ various data types Conversion Summary (Programming)
- Eclipse-ee Tomcat browser can not start Tomcat, and Web project service deployment (Server)
- Ubuntu 14.04 + xRDP + Xfce implement Windows Remote Desktop Connection (Linux)
- 20 Top Linux commands (Linux)
- WordPress blog installation Redis Cache (Server)
- Linux system security (Linux)
- To teach you a trick to find the real IP address (Linux)
- Linux IO redirection (Linux)
- Shutdown - an advanced shutdown artifact (Linux)
- Oracle create a temporary table space group (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.