logstash迁移es数据

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
27
28
input {
 elasticsearch {
   hosts => ["instance:9200"]
   user => "elastic"
   index => "*,-.monitoring*,-.security*,-.kibana*"
   password => "123456"
   docinfo => true
   ssl => true
   #证书路径
   ca_file => "/app/taishi/elasticsearch/ca/ca.crt"
 }
}
filter {
}
output {
 elasticsearch {
  hosts => ["https://1.1.1.1:9200"]
  user => "elastic"
  password => "123456"
  index => "%{[@metadata][_index]}"
  ssl => true
  #证书路径
  cacert => "/app/taishi/elasticsearch/ca2/ca.crt"
  document_type => "%{[@metadata][_type]}"
  document_id => "%{[@metadata][_id]}"
 }
 
}

  

posted @   有点丿东西  阅读(163)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 【.NET】调用本地 Deepseek 模型
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· 我与微信审核的“相爱相杀”看个人小程序副业
· DeepSeek “源神”启动!「GitHub 热点速览」
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库
点击右上角即可分享
微信分享提示