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!