Log files can easily occupy the space of a drive.
If the log files is collecting or monitoring multiple system then chances are it will grow in size very quickly.
If it the log file is in a text format, even if it comes in Giga or Tera bytes size it can be emptied very quickly in a command line.
If the log files has been analyzed or not in use anymore, then it is a good candidate to get rid of it rather than occupy the space of a drive for nothing.
To empty a log file or a text file:
In Windows open command prompt and type:
echo "First Line" > Packets_2018.log
The log file will be replace with the word "First Line" and only a few bytes in size. Whatever was the content before on that log file is ditch away. So, be careful in emptying a file it's not reversible,
In Linux open Terminal and type:
echo "Line 1" > Packet_logstash.log
Till next time..Cheers!
If the log files is collecting or monitoring multiple system then chances are it will grow in size very quickly.
If it the log file is in a text format, even if it comes in Giga or Tera bytes size it can be emptied very quickly in a command line.
If the log files has been analyzed or not in use anymore, then it is a good candidate to get rid of it rather than occupy the space of a drive for nothing.
To empty a log file or a text file:
In Windows open command prompt and type:
echo "First Line" > Packets_2018.log
The log file will be replace with the word "First Line" and only a few bytes in size. Whatever was the content before on that log file is ditch away. So, be careful in emptying a file it's not reversible,
In Linux open Terminal and type:
echo "Line 1" > Packet_logstash.log
Till next time..Cheers!
================================
Free Android Apps:
Click links below to find out more:
Excel Keyboard guide:
Heaven's Dew Fall Prayer app for Android :
Catholic Rosary Guide for Android:
Comments
Post a Comment