Windows 7 Xml log format Convenient (1)

  
        It is said that the windowsxp operating system records all the moves in the background in obscurity every day, which is equivalent to the loyal history officer "writing the spring and autumn", then where is the Win7 system log file? How to open it? For example, I want to watch the computer boot and shutdown records. How to view? Control panel all control panel item performance information and tools advanced tools, view performance details in the event log. It is understood that in several versions of the Windows operating system, you can save the system log as a text file, CSV Files, etc., to facilitate system administrators to query. However, unlike the XP operating system version, in Windows 7, its log is saved as one more format, namely the Xml format. As shown in the following figure, in addition to the three formats of the XP operating system, there is an additional XML file format in Windows 7. This format is also a log format that many system administrators expect. Because of this log format, it can bring great convenience to our daily management.

system log format

a convenience: easy to read and query.

Xml file format with the biggest difference other files, Xml document is a structured data. In general, when saving records, some special formatting control symbols are used to ensure that the stored data meets the needs of the structure. So how does this structured data help system administrators? The most direct help is that the system administrator can easily import the data of the XML file into the database for analysis. System administrators often need months or even years of log information analysis to find information that improves operating system performance and vulnerabilities. But for these massive amounts of data, it is difficult to draw a reasonable conclusion without resorting to specialized analytical tools such as databases. To this end, system administrators often need to import these log records into the database system, and then compare them vertically and horizontally, and finally come up with some feasible conclusions.

Now if the Xml format to save log information, then the system administrator can easily import these log information to the database. You can import files in XML format directly into the database system without any adjustments. Since the XML file can be opened directly by a tool such as a browser, this browser is often an application software necessary for the operating system. So its view will be very convenient.

convenience II: Another advantage of relatively high compatibility

XML file, is its high compatibility. Now mainstream database software basically supports XML files. In other words, system administrators can not only use Microsoft SQL Server database software, but also use non-Microsoft database software such as Oracle to import log information and then analyze it. Often, most system administrators don't like to use SQL Server databases because they are relatively more complex and more cumbersome to install. Furthermore, statistical analysis of log records, using a large database system such as SQL Server is also a bit of a small use. For this reason, system administrators including the author prefer to use a small database system such as MySQL for analysis. Not only because it's free, it's mainly small and convenient, and it doesn't take up a lot of hard disk space. Now, in the Windows 7 operating system, files in XML format have been released to store log records, so our system administrators have more reason to adopt small databases such as MySQL. Because MySQL support for XML files is very powerful. Moreover, the database can also save the relevant statistical results in the format of an XML file.

additional XML compatibility is also reflected in the different operating system platform compatibility. Like event files, this is a file format provided by the Microsoft operating system and cannot be opened on operating systems such as Linux. Another example is a text file, although it can be opened on the Linux operating system. However, there is usually a confusion in the format that affects the normal reading of the system administrator. Unless the system administrator uses some of the tools that come with the system to convert. But this is not the case with files in XML format. The XML file looks like a web page. It looks like it opens under the Windows operating system, so it looks like this on the Linux operating system. Not only will the format not be messed up, but there is no need to use other additional aids. Therefore, compatibility on this different operating system platform can improve the sharing of employee data. As far as I know, many companies may use the Windows system on the client side and the non-Microsoft operating system on the server side. This trend is now more and more obvious. Therefore, it is also necessary to improve the compatibility of this multi-operating system. Even if you save the log files in a file server on the Linux operating system, you don't have to worry about any problems.

convenient three: can achieve unified management

log file in the enterprise, not only the operating system will generate a log file. Other application systems also generate relevant log files. Log files are also generated, such as database systems, ERP systems, financial management software, and the like. When there are many enterprise application servers, the distributed management log files are not only inefficient, but also easily lead to the omission of key information. To this end, it is a good solution to manage the log files generated by each system and service through a unified log server platform. But to achieve this goal, the biggest obstacle is that the log file format generated by each system is not compatible. If the Oracle database system, the Windows operating system, etc. all store log files in their respective formats, then different tools are needed to open these log files for query, which is very inconvenient to handle. And if these applications support log files in XML format, then it will be very convenient.


Copyright © Windows knowledge All Rights Reserved