Read more convenient - Windows 7 saves log files in Xml format

  

In several versions of the Windows operating system, you can save the system log as a text file, CSV file, 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, 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 the log format that many system administrators expect. Because of this log format, it can bring great convenience to our daily management.

Windows7 saves log files in Xml format

Convenience 1: Easy to read and query.

The Xml format file is the biggest difference from other files, that is, the Xml file 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 relying on 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.

And now if you use the Xml format to save log information, then the system administrator can easily import these log information into the database. XML files can be imported 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 2: High compatibility.

Another advantage of the XML file is that its compatibility is relatively high. 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 complex and 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 compatibility of different operating system platforms. 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 do the conversion. 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.

Convenience 3: Uniform management of log files can be realized.

In the enterprise, not only the operating system will generate log files. 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.

Since Microsoft Windows 7 operating system launched a log file in XML format, I am currently working on a project. The log files of the Windows 7 operating system, the Oracle database system, and other application services that support XML log files are managed by the same software. In fact, the principle is very simple, that is, the log files generated by these systems are automatically transferred to a log server, and then the database will automatically import these log files into the database server. And use the database triggers and other tools to do some analysis, automatic warning and so on. This can reduce the amount of time the system administrator spends viewing the relevant logs from time to time, reducing the workload of the system administrator.

So Microsoft introduced a log file in XML format, which makes it possible to implement a unified management operating system and other non-Microsoft product log files. Because the XML format is a structured data file, there are many vendors that support it. However, the XML format file has been out for a long time, and should be before the XP operating system. Why is this technology not implemented on the XP operating system? I am confused about this. However, in Windows7, I finally hoped for everyone. It’s better to be late than never.

Convenience 4: Support for WEB is better.

Sometimes a system administrator is often unable to perform an analysis of related log records. It is necessary to complete the relevant log analysis work with the database administrator or other application software owners. This is mainly due to the continuous refinement of the division of system administrators. There are a lot of project management software now, all based on WEB. This will be of great help to the system administrator if the log files are combined with these web project management software.

And now the XML format file is a developed text-based format that can be transferred using HTTP like HTML without any adjustments to the existing network structure. It can be seen that the XML format file is very supportive for WEB services. The system administrator only needs to save the log file as a file in XML format without any adjustment.

In addition to these features, it is not necessary to explain that the XML file compression is better. Because the content of the system log is often more, if you want to save the complete log information, you often need to use more hard disk space. And if you use XML format files, you can often use less hard disk space than other files. This is mainly because the compression of XML files is better. Because the tags describing the data structure can be reused in the XML file, the hard disk space can be reduced by high compression ratio.

However, when using XML files, you need to pay attention to a problem, that is, some IE browsers do not support XML files very well. If you use the Netscape 8 browser to view the XML file, it will be blank and you will not be able to view its specific content. This issue has been fixed in the Netscape 8.02 release.

Copyright © Windows knowledge All Rights Reserved