From owner-freebsd-elastic@freebsd.org Sun Jul 5 13:30:41 2020 Return-Path: Delivered-To: freebsd-elastic@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 92D5A36B7A3 for ; Sun, 5 Jul 2020 13:30:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4B08hx3SrYz3gJ9 for ; Sun, 5 Jul 2020 13:30:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 76EB736B8AE; Sun, 5 Jul 2020 13:30:41 +0000 (UTC) Delivered-To: elastic@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 76B3D36BA0F for ; Sun, 5 Jul 2020 13:30:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B08hx2bG6z3gXy for ; Sun, 5 Jul 2020 13:30:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3C0B2E288 for ; Sun, 5 Jul 2020 13:30:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 065DUfdQ093777 for ; Sun, 5 Jul 2020 13:30:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 065DUfYs093776 for elastic@FreeBSD.org; Sun, 5 Jul 2020 13:30:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: elastic@FreeBSD.org Subject: [Bug 247776] sysutils/beats7: Filebeat dashboards fail to install on setup Date: Sun, 05 Jul 2020 13:30:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: me@ricalo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: elastic@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-elastic@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Support of ElasticSearch-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jul 2020 13:30:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247776 Bug ID: 247776 Summary: sysutils/beats7: Filebeat dashboards fail to install on setup Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: elastic@FreeBSD.org Reporter: me@ricalo.com Assignee: elastic@FreeBSD.org Flags: maintainer-feedback?(elastic@FreeBSD.org) I configured the following values in /usr/local/etc/beats/filebeat.yml: setup.dashboards.enabled: true setup.dashboards.directory: /usr/local/share/beats/filebeat/kibana After starting the service with service filebeat start, the console throws = the following errors for each json file in /usr/local/share/beats/filebeat/kibana/7/dashboard/: error loading /usr/local/share/beats/filebeat/kibana/7/dashboard/Filebeat-logstash-log.js= on: returned 500 to import file: . Response {"statusCode":500,"error":"Internal Server Error","message":"An internal se= rver error occurred"} Furthermore, I found the following errors in /var/log/kibana.log: {"type":"log","@timestamp":"2020-07-03T12:49:49Z","tags":["warning","savedo= bjects-service"],"pid":62625,"message":"Failed to transform document [object Object]. Transform: visualization:7.0.0\nDoc: {\"id\":\"0b1dace0-cbdb-11e7-9852-73e0a9df1bb6-ecs\",\"type\":\"visualizati= on\",\"attributes\":{\"description\":\"\",\"kibanaSavedObjectMeta\":{\"sear= chSourceJSON\":{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\= "\"}}},\"title\":\"Logs Severity [Filebeat Logstash] ECS\",\"uiStateJSON\":{},\"version\":1,\"visState\":{\"aggs\":[{\"enabled\"= :true,\"id\":\"1\",\"params\":{},\"schema\":\"metric\",\"type\":\"count\"},= {\"enabled\":true,\"id\":\"2\",\"params\":{\"field\":\"log.level\",\"order\= ":\"desc\",\"orderBy\":\"1\",\"size\":5},\"schema\":\"segment\",\"type\":\"= terms\"}],\"params\":{\"addLegend\":true,\"addTooltip\":true,\"isDonut\":tr= ue,\"legendPosition\":\"right\",\"type\":\"pie\"},\"title\":\"Logs Severity [Filebeat Logstash] ECS\",\"type\":\"pie\"},\"savedSearchRefName\":\"search_0\"},\"migrationVer= sion\":{\"visualization\":\"6.7.2\"},\"updated_at\":\"2020-07-03T12:49:49.5= 73Z\",\"references\":[{\"type\":\"search\",\"name\":\"search_0\",\"id\":\"c= faba090-cbda-11e7-9852-73e0a9df1bb6-ecs\"}]}"} {"type":"error","@timestamp":"2020-07-03T12:49:49Z","tags":[],"pid":62625,"= level":"error","error":{"message":"Failure attempting to migrate saved object 'Logs Severity [Filebeat Logstash] ECS' - SyntaxError: Unexpected token o in JSON at position 1","name":"Error","stack":"Error: Failure attempting to migrate saved object 'Logs Severity [Filebeat Logstash] ECS' - SyntaxError: Unexpected token o in JSON at position 1\n at migrateTableSplits (/usr/local/www/kibana7/src/plugins/visualizations/server/saved_objects/vis= ualization_migrations.js:573:11)\n at /usr/local/www/kibana7/node_modules/lodash/index.js:3375:35\n at tryTransformDoc (/usr/local/www/kibana7/src/core/server/saved_objects/migrations/core/docum= ent_migrator.js:224:22)\n at migrateProp (/usr/local/www/kibana7/src/core/server/saved_objects/migrations/core/docum= ent_migrator.js:281:11)\n at applyMigrations (/usr/local/www/kibana7/src/core/server/saved_objects/migrations/core/docum= ent_migrator.js:180:11)\n at DocumentMigrator.transformAndValidate [as transformDoc] (/usr/local/www/kibana7/src/core/server/saved_objects/migrations/core/docum= ent_migrator.js:159:43)\n at DocumentMigrator.doc [as migrate] (/usr/local/www/kibana7/src/core/server/saved_objects/migrations/core/docum= ent_migrator.js:52:19)\n at KibanaMigrator.migrateDocument (/usr/local/www/kibana7/src/core/server/saved_objects/migrations/kibana/kib= ana_migrator.js:142:34)\n at objects.map.object (/usr/local/www/kibana7/src/core/server/saved_objects/service/lib/repositor= y.js:227:74)\n at Array.map ()\n at SavedObjectsRepository.bulkCreate (/usr/local/www/kibana7/src/core/server/saved_objects/service/lib/repositor= y.js:211:37)\n at SavedObjectsClient.bulkCreate (/usr/local/www/kibana7/src/core/server/saved_objects/service/saved_objects= _client.js:46:35)\n at EncryptedSavedObjectsClientWrapper.bulkCreate (/usr/local/www/kibana7/x-pack/plugins/encrypted_saved_objects/server/saved= _objects/encrypted_saved_objects_client_wrapper.js:80:89)\n at process._tickCallback (internal/process/next_tick.js:68:7)"},"url":{"protocol":null,"slashes":nul= l,"auth":null,"host":null,"port":null,"hostname":null,"hash":null,"search":= "?exclude=3Dindex-pattern&force=3Dtrue","query":{"exclude":"index-pattern",= "force":"true"},"pathname":"/api/kibana/dashboards/import","path":"/api/kib= ana/dashboards/import?exclude=3Dindex-pattern&force=3Dtrue","href":"/api/ki= bana/dashboards/import?exclude=3Dindex-pattern&force=3Dtrue"},"message":"Fa= ilure attempting to migrate saved object 'Logs Severity [Filebeat Logstash] ECS' - SyntaxError: Unexpected token o in JSON at position 1"} I tried replacing the JSON files with the corresponding files from https://github.com/elastic/beats to no avail. Workaround: 1. Downloaded beat from https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.7.1-linux-= x86_64.tar.gz 2. Unpackaged tar file (tar -xvf filebeat-7.7.1-linux-x86_64.tar.gz) 3. Copied json files to expected location (cp filebeat-7.7.1-linux-x86_64/kibana/7/dashboard/*.json /usr/local/share/beats/filebeat/kibana/7/dashboard/) 4. Start the service (service filebeat start) --=20 You are receiving this mail because: You are the assignee for the bug.=