ELKB

elasticsearch curl samples

1
2
3
4
5
curl http://10.103.3.74:9200/_cat/shards
curl http://10.103.3.74:9200/_search |jq .
curl http://10.103.11.100:9200/nfvd-switch_bmc-2020.02.06/_search |jq .
curl http://10.103.11.100:9200/nfvd-switch_bmc-2020.02.06/_search?size=100 |jq .
curl http://10.103.24.15:30200/_cat/indices?v

Switch Fluentd config

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<source>
  type syslog
  port 65535
  bind 0.0.0.0
  format /^(?<time>...............) (?<host>[^ ]*) (?<ident>[^:]*)(?:\[(?<pid>[0-9]+)\])?[^\:]*\: *(?<message>.*)$/
  protocol_type udp
  tag 222.1
</source>

<match 222.**>
  type elasticsearch
  host 10.103.3.74
  port 9201
  logstash_format false
  utc_index true
  index_name fluentd
  type_name fluentd
  include_tag_key false
  request_timeout 5s
  reload_connections true
  reload_on_failure false
  buffer_type memory
  buffer_queue_limit 16
  buffer_chunk_limit 8m
  flush_interval 10s
</match>
comments powered by Disqus