How can I enable the 5 GB log?

Source: Internet
Author: User
If you want to analyze the logs, there are actually 5 GB of logs. I don't know what tools can be used to open the logs. I tried two text splitters and couldn't open them. I don't need to separate them. how can I solve this problem, find an easy-to-use text splitter. Thank you for providing so many methods! If you want to analyze the logs, there are actually 5 GB of logs. I don't know what tools can be used to open the logs. I tried two text splitters and couldn't open them. I don't need to separate them. how can I solve this problem, find an easy-to-use text splitter.
Thank you for providing so many methods!

Reply content:

If you want to analyze the logs, there are actually 5 GB of logs. I don't know what tools can be used to open the logs. I tried two text splitters and couldn't open them. I don't need to separate them. how can I solve this problem, find an easy-to-use text splitter.
Thank you for providing so many methods!

What is this open? Do you want to see some of the content? For one row of logs, you can useheadCommand to check the number of lines before, feel that it is not enough to usetailCheck the number of rows. You can useawkCommand. If the processing logic is large, usepythonIn Pythonfile('log.log','r')It is a row iterator that occupies very little memory.
If you want to open it directly with a visualization tool, the preceding ultraEdit64-bit can achieve

We recommend that you use EmEditor, which is provided on the official website.

You can use fopen/while (! Feof ($ fp)/fgets traverses files row by row for operations:


  

Use linux split.

split -b 100m your_file

Use ultraEdit64-bit

Awk recommended for log analysis

Not standardized ..
When processing logs, do you not need to set the upper limit? is it possible to archive the logs by classification? 5 GB is broken, which is a headache ..

Try it with python generator

UltraEdit has tried to open more than 2 GB log files, but not 7 GB.

Less can view files!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.