how to monitor system logs and export to files simultaneously

Posted Pieces0310

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了how to monitor system logs and export to files simultaneously相关的知识,希望对你有一定的参考价值。

What will you do when you conduct a malware analysis on a smartphone? You will focus on running processes or services, and also you‘ll capture memory dump and network packets for further analysis.

技术分享

技术分享技术分享技术分享

 

Of course you will keep an eye on the system logs. You want to real time monitor the logs but you will feel exhausted easily on doing this all day. If you want to real time monitor and export to files for further analysis, you could use adb logcat and pipe to a file on the workstation. The command is as below:

adb logcat | tee -a sys.log

 

技术分享

 

 

Examine the log file and you could see someone logged into the smartphone at 14:07:20 through SSH, and the source ip was 172.20.10.3 .

技术分享

 

以上是关于how to monitor system logs and export to files simultaneously的主要内容,如果未能解决你的问题,请参考以下文章

How to Add Linux Host to Nagios Monitoring Server Using NRPE Plugin

How to monitor mongodb replica set using prometheu

How To Use Logstash and Kibana To Centralize Logs On CentOS 6

how to navigate(跳转)the file system

How to integrate Identity System in Activity

How to change vCenter log size