I have cloud elastic activated. I want to set up my environment in following way:
[beats - on prem] ----> [logstash-on prem] ------> [elastic cloud]
So, basically install beats on servers, send logs to logstash on prem and than ship it out form logstash to elastic cloud.
Here is my configuration for *.conf
input {
beats {
port => 5044
type => "log"
host => "0.0.0.0"
}
}
output {
elasticsearch {
hosts => "https://xxxxdeploymxxx1.xxxx:9243"
user => "elastic"
password => "xxxxxxx"
index => "%{[@metadata][beat]}-%{+yyyy.ww}"
document_type => "%{[@metadata][type]}"
}
}
configuration for *.yml
xpack.management.enabled: true
xpack.management.elasticsearch.cloud_id: xxxxxdeployment:xxxxxxxx
xpack.management.elasticsearch.cloud_auth: elasxxxtic:xxxxxr
Finally this is the error I get when i run logstash
[2021-05-28T11:28:10,662][WARN ][logstash.configmanagement.elasticsearchsource] Detected a 6.x and above cluster: the `t
ype` event field won't be used to determine the document _type {:es_version=>7}
[2021-05-28T11:28:10,697][DEBUG][logstash.configmanagement.elasticsearchsource] Reading configuration from Elasticsearch
version 7.13.0
[2021-05-28T11:28:10,748][DEBUG][logstash.configmanagement.systemindicesfetcher] Could not find a remote configuration f
or specific `pipeline_id` {:pipeline_ids=>["main"]}
[2021-05-28T11:28:10,757][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2021-05-28T11:28:10,779][DEBUG][logstash.agent ] Converging pipelines state {:actions_count=>0}
[2021-05-28T11:28:15,066][DEBUG][logstash.instrument.periodicpoller.cgroup] One or more required cgroup files or directo
ries not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu
[2021-05-28T11:28:15,182][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Young Generation"}
[2021-05-28T11:28:15,185][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Old Generation"}
[2021-05-28T11:28:15,854][DEBUG][logstash.configmanagement.elasticsearchsource] Reading configuration from Elasticsearch
version 7.13.0
[2021-05-28T11:28:15,885][DEBUG][logstash.configmanagement.systemindicesfetcher] Could not find a remote configuration f
or specific `pipeline_id` {:pipeline_ids=>["main"]}
[2021-05-28T11:28:15,886][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2021-05-28T11:28:15,889][DEBUG][logstash.agent ] Converging pipelines state {:actions_count=>0}
[2021-05-28T11:28:20,078][DEBUG][logstash.instrument.periodicpoller.cgroup] One or more required cgroup files or directo
ries not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu
[2021-05-28T11:28:20,221][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Young Generation"}
[2021-05-28T11:28:20,221][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Old Generation"}
[2021-05-28T11:28:20,828][DEBUG][logstash.configmanagement.elasticsearchsource] Reading configuration from Elasticsearch
version 7.13.0
[2021-05-28T11:28:20,860][DEBUG][logstash.configmanagement.systemindicesfetcher] Could not find a remote configuration f
or specific `pipeline_id` {:pipeline_ids=>["main"]}
[2021-05-28T11:28:20,861][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2021-05-28T11:28:20,863][DEBUG][logstash.agent ] Converging pipelines state {:actions_count=>0}
[2021-05-28T11:28:25,093][DEBUG][logstash.instrument.periodicpoller.cgroup] One or more required cgroup files or directo
ries not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu
[2021-05-28T11:28:25,248][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Young Generation"}
[2021-05-28T11:28:25,252][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Old Generation"}
[2021-05-28T11:28:25,823][DEBUG][logstash.configmanagement.elasticsearchsource] Reading configuration from Elasticsearch
version 7.13.0
[2021-05-28T11:28:25,853][DEBUG][logstash.configmanagement.systemindicesfetcher] Could not find a remote configuration f
or specific `pipeline_id` {:pipeline_ids=>["main"]}
[2021-05-28T11:28:25,854][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2021-05-28T11:28:25,857][DEBUG][logstash.agent ] Converging pipelines state {:actions_count=>0}
[2021-05-28T11:28:30,101][DEBUG][logstash.instrument.periodicpoller.cgroup] One or more required cgroup files or directo
ries not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu
[2021-05-28T11:28:30,268][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Young Generation"}
[2021-05-28T11:28:30,279][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Old Generation"}
[2021-05-28T11:28:30,842][DEBUG][logstash.configmanagement.elasticsearchsource] Reading configuration from Elasticsearch
version 7.13.0
[2021-05-28T11:28:30,872][DEBUG][logstash.configmanagement.systemindicesfetcher] Could not find a remote configuration f
or specific `pipeline_id` {:pipeline_ids=>["main"]}
Can you please help ?
PS. I tried uncommenting "pipeline.id: main" and setting path for path.config: C:/logstash/*.conf file but this did not solve the problem
[2021-05-28T11:54:48,163][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2021-05-28T11:54:48,186][DEBUG][logstash.agent ] Converging pipelines state {:actions_count=>0}
[2021-05-28T11:54:52,509][DEBUG][logstash.instrument.periodicpoller.cgroup] One or more required cgroup files or directo
ries not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu
[2021-05-28T11:54:52,627][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Young Generation"}
[2021-05-28T11:54:52,628][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Old Generation"}
[2021-05-28T11:54:53,251][DEBUG][logstash.configmanagement.elasticsearchsource] Reading configuration from Elasticsearch
version 7.13.0
[2021-05-28T11:54:53,285][DEBUG][logstash.configmanagement.systemindicesfetcher] Could not find a remote configuration f
or specific `pipeline_id` {:pipeline_ids=>["main"]}
[2021-05-28T11:54:53,286][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2021-05-28T11:54:53,289][DEBUG][logstash.agent ] Converging pipelines state {:actions_count=>0}
[2021-05-28T11:54:57,522][DEBUG][logstash.instrument.periodicpoller.cgroup] One or more required cgroup files or directo
ries not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu
[2021-05-28T11:54:57,664][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Young Generation"}
[2021-05-28T11:54:57,664][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Old Generation"}
[2021-05-28T11:54:58,235][DEBUG][logstash.configmanagement.elasticsearchsource] Reading configuration from Elasticsearch
version 7.13.0
[2021-05-28T11:54:58,264][DEBUG][logstash.configmanagement.systemindicesfetcher] Could not find a remote configuration f
or specific `pipeline_id` {:pipeline_ids=>["main"]}
[2021-05-28T11:54:58,266][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2021-05-28T11:54:58,267][DEBUG][logstash.agent ] Converging pipelines state {:actions_count=>0}