[英]How to add path field to every document in an ElasticSearch index?
While pushing logs from local to ES using file input plugin, a path
field gets added which contains the actual path of the log file which the document was created from.使用文件输入插件将日志从本地推送到 ES 时,会添加一个path
字段,其中包含创建文档的日志文件的实际路径。 But this field doesn't show up when using the AWS s3
input plugin.但是在使用 AWS s3
输入插件时不会显示此字段。 How do I add it?我如何添加它?
My s3 input plugin:我的 s3 输入插件:
s3 {
"access_key_id" => "***"
"secret_access_key" => "***"
"backup_to_dir" => "/home/xyz/aws_s3_backup_data/"
"bucket" => "bucket"
"prefix" => "folder/dir/"
}
看起来他们将其添加为[@metadata][s3][key]
,尽管它不在文档中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.