摘要:原本使用logstash是无法读取/root/.bash_history的。这里用了一个比较巧妙的方法,将history命令记录在message中,然后再使用logstash来读取。 我们需要在/etc/profile中最后加入一行: /var/log/message效果如下
阅读全文
posted @ 2017-04-12 22:45
|
|||
04 2017 档案
摘要:原本使用logstash是无法读取/root/.bash_history的。这里用了一个比较巧妙的方法,将history命令记录在message中,然后再使用logstash来读取。 我们需要在/etc/profile中最后加入一行: /var/log/message效果如下
阅读全文
posted @ 2017-04-12 22:45
|
|||