Module: LogStash::Config::Defaults

Extended by:
Defaults
Included in:
Defaults
Defined in:
lib/logstash/config/defaults.rb

Instance Method Summary collapse

Instance Method Details

#cpu_coresObject



16
17
18
# File 'lib/logstash/config/defaults.rb', line 16

def cpu_cores
  Concurrent.processor_count
end

#inputObject



8
9
10
# File 'lib/logstash/config/defaults.rb', line 8

def input
  "input { stdin { type => stdin } }"
end

#outputObject



12
13
14
# File 'lib/logstash/config/defaults.rb', line 12

def output
  "output { stdout { codec => rubydebug } }"
end