Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | About

98.2. logstash 命令簡單應用

98.2.1. 命令行運行

logstash -e "input {stdin{}} output {stdout{}}"

			
/usr/share/logstash/bin/logstash  -e 'input{file {path => "/etc/centos-release" start_position => "beginning"}} output { stdout {}}'			
			
			

98.2.2. 指定配置檔案

			
logstash -f stdin.conf