举个栗子

马辰龙De技术分享
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年4月12日

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

posted @ 2017-04-12 22:45 ChenlongMa 阅读(447) 评论(0) 推荐(0) 编辑