Reading a file

When preparing a configuration file to read from a file and forward the data directly to Devo, not the following variables:

  • In the input section of the file, the sincedb_path variable indicates where to save the last line sent to Devo.
  • In the output section of the file, appname is the tag to apply to the data you are sending to Devo.

input {
	file {
		path => "/Users/Ramon/logstash/logs/*"
		start_position => "beginning"
		sincedb_path => "/Users/Ramon/logstash/dbfile"

output {
	syslog {
		facility => "local7"
		severity => "informational"
		host => ""
		port => "443"
		appname => ""	#HERE WE ADD THE TAG
		protocol => "ssl-tcp"
		ssl_cert => "/Users/Ramon/logstash/ca/ramontest.crt"
		ssl_key => "/Users/Ramon/logstash/ca/ramontest.key"
		ssl_cacert => "/Users/Ramon/logstash/ca/chain.crt"

Have we answered your question?

If not, please contact our technical support team via email by clicking the button below.