当前位置: 首页 > news >正文

网站商城建设员招聘网站建设公司要求什么

网站商城建设员招聘,网站建设公司要求什么,网站字体效果,百度知道首页登录入口作为 Elasticsearch 用户#xff0c;我们从许多不同的位置收集数据。 我们使用 Logstash、Beats 和其他工具来抓取数据并将它们发送到 Elasticsearch。 有时#xff0c;我们无法控制数据本身#xff0c;我们需要管理数据的结构#xff0c;甚至需要在摄取数据时处理字段名称… 作为 Elasticsearch 用户我们从许多不同的位置收集数据。 我们使用 Logstash、Beats 和其他工具来抓取数据并将它们发送到 Elasticsearch。 有时我们无法控制数据本身我们需要管理数据的结构甚至需要在摄取数据时处理字段名称。 Elasticsearch 有一些保留的字段名称你不能在文档中使用这些名称。 如果文档具有这些字段之一则无法为该文档编制索引。 但是这并不意味着你不能在文档中的任何地方使用这些字段名称。 该限制仅对根节点root node有效。 因此你无法索引以下文档 PUT twitter/_doc/1 {_id: 1 } 你会得到如下错误 但是你可以成功地写入如下的文档 PUT twitter/_doc/1 {user: {_id: 1,name: liuxg} } 究其原因在上面的 _id 它不是在 root node 下的字段。 因此正如你在上面看到的 _id 字段你不能在文档中使用以下字段名称作为 root 字段名称 _id _field_names _index _seq_no _nested_path _ignored _routing _data_stream_timestamp _tier _version _feature _source _primary_term * _type * 注意上面用 * 标注的字段对于老版本的 elasticsearch 这个字段也是保留关键字 这意味着如果你有将这些字段名称作为根字段的文档。 你会得到一个错误。 例如你想使用 Logstash 移动该数据。 你有一个包含如下内容的文件 {ImdbId: tt0030629,_id: tt0030629,name: Prison Without Bars,year: 1938,certificate: Approved,runtime: 72 min,genre: [Crime, Drama, Romance],ratingValue: 6.2,summary_text: Suzanne, Renee, Nina and Marta all hate being in prison, being slapped and treated badly, and so all the girls are trying to escape. Madame Appel just causes chaos all the time, with her ... See full summary\u00a0\u00bb,ratingCount: 66 } {ImdbId: tt0030528,_id: tt0030528,name: Orage,year: 1938,certificate: ,runtime: 98 min,genre: [Drama],ratingValue: 5.7,summary_text: Orage is a 1938 French drama film directed by Marc All\u00e9gret. The screenplay was written by Marcel Achard and H.G. Lustig, based on play \Le venin\ by Henri Bernstein. The films stars ... See full summary\u00a0\u00bb,ratingCount: 66 } 因此当你尝试使用 Logstash 摄取它时你将收到以下错误。 即使你在单独索引这些文档时也会遇到上述错误。比如我们使用如下的一个例子 sample.log {_id:1,timestamp:2019-09-12T13:43:42Z,paymentType:Amex,name:Merrill Duffield,gender:Female,ip_address:132.150.218.21,purpose:Toys,country:United Arab Emirates,age:33} {_id:2,timestamp:2019-08-11T17:55:56Z,paymentType:Visa,name:Darby Dacks,gender:Female,ip_address:77.72.239.47,purpose:Shoes,country:Poland,age:55} {_id:3,timestamp:2019-07-14T04:48:25Z,paymentType:Visa,name:Harri Cayette,gender:Female,ip_address:227.6.210.146,purpose:Sports,country:Canada,age:27} {_id:4,timestamp:2020-02-29T12:41:59Z,paymentType:Mastercard,name:Regan Stockman,gender:Male,ip_address:139.224.15.154,purpose:Home,country:Indonesia,age:34} {_id:5,timestamp:2019-08-03T19:37:51Z,paymentType:Mastercard,name:Wilhelmina Polle,gender:Female,ip_address:252.254.68.68,purpose:Health,country:Ukraine,age:51} logstash_input.conf input {file {path //Users/liuxg/elastic/logstash-8.6.2/sample.logtype applogcodec jsonstart_position beginningsincedb_path /dev/null} }output {stdout {codec rubydebug}elasticsearch {hosts [localhost:9200]index json-%{YYYY.MM.dd}} } 我们使用如下的命令来启动对数据的采集 $ pwd /Users/liuxg/elastic/logstash-8.6.2 $ ls sample.log logstash_input.conf logstash_input.conf sample.log ./bin/logstash -f logstash_input.conf 如你所见错误与我们上面得到的错误相同。 那么我们需要做什么 有一些解决方案可以处理这些类型的数据操作。 你可以在源上修复文档也可以使用 mutate 过滤器在 Logstash 中管理它们 logstash_input.conf input {file {path //Users/liuxg/elastic/logstash-8.6.2/sample.logtype applogcodec jsonstart_position beginningsincedb_path /dev/null} }filter {mutate {rename {_id id}} }output {stdout {codec rubydebug}elasticsearch {hosts [localhost:9200]index json-%{YYYY.MM.dd}} } 我们再次运行 Logstash ./bin/logstash -f logstash_input.conf 我们可以看到这次数据被成功地写入并且我们可以在 Kibana 中进行查看 当您重新运行 logstash 时您将看到文档将被正确索引。 另一方面我试图解决摄取管道的问题。 一开始我认为这对我来说可能是一个更好的解决方案。 但有趣的是我对摄取管道尝试了很多不同的方法但我找不到解决方案。 这是我尝试使用摄取管道的方法 POST _ingest/pipeline/_simulate {pipeline: {processors: [{rename: {field: _id,target_field: id}}]},docs: [{_index: myindex,_id: 1,_source: {_id: 2}}] } 我收到以下错误 {error: {root_cause: [{type: illegal_argument_exception,reason: unexpected metadata [_id:1] in source}],type: illegal_argument_exception,reason: unexpected metadata [_id:1] in source},status: 400 }
http://www.dnsts.com.cn/news/232918.html

相关文章:

  • 自己怎么做免费网站宁夏做网站公司
  • 手机网站和app的区别整合营销的案例
  • 黄石网站建设(乐云践新)建设静态网站工具
  • 企业网站建立网络虚拟社区时对于企业宝塔里面一个服务器做多个网站
  • 帮别人做网站怎么赚钱html免费模板下载
  • 网站搜索功能wordpress的语言
  • 在线包车网站建设淘宝返利网站建设
  • 临沂网站哪家好html仿淘宝首页电子商务网站首页
  • 营销网站建设818gx怎样做网站seo优化
  • 东莞网站建设 信科网络百度 营销推广是做什么的
  • 怎么才能建立网站最新网游排行榜2024
  • 吉林建设厅网站首页设计师学校有哪些
  • 天堂网站文献综述 php网站开发
  • 怎么制作微信购物网站android源码下载
  • 网站建设图标素材免费wordpress仿qq空间
  • 专做动漫的网站互联网网站建设方案
  • 网站设计模板 英文翻译如何卸载win上的wordpress
  • 经营网站icp备案要求会所类WordPress主题
  • 推广网站有哪些平台阜阳网站是
  • 网站建设优化公司哪家好做免费网站安全吗
  • 网站建设步骤列表图片网站中的游戏是怎么做的
  • 产品销售型的网站wordpress 搜索出图片
  • 小城市企业网站建设学科专业建设规划
  • 手表网站查询网络营销的工作内容包括哪些
  • 一个做特卖的网站上海外贸网站建设公司
  • 做网站的windowlcd济宁网站建设_云科网络
  • 河北省建设厅管网站wordpress修改主题文件
  • 医疗网站专题模板wordpress博客文章tdk设置
  • 石家庄的网站公司如何做 行业社交类网站
  • 企业网站建设需要多少钱成都wordpress获取指定分类文章