You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-18Lines changed: 22 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
3
3
This project is a simple tutorial for Kibana new comers trying to developer their own vizualisation plugin. The actual usecase is to create a custom form to filter data to help end-users search their data.
4
4
5
-
This plugin is a demo for the accounts data which can be downloaded from elastic web site [here](https://download.elastic.co/demos/kibana/gettingstarted/accounts.zip).
5
+
This plugin is a demo for the accounts data which can be downloaded from elastic web site [here](https://download.elastic.co/demos/kibana/gettingstarted/accounts.zip) then uploaded via `curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/bank/account/_bulk?pretty' --data-binary @accounts.json`.
6
6
7
-
As plugin architecture is being under heavy redesign in 7.x and document is rather obscure, I did my best to create something simple that works.
7
+
As plugin architecture is being under heavy redesign in 7.x and documentation is rather obscure, I did my best to create something simple that works.
8
8
9
-
This repository is for 7.7 while [this repository](https://github.com/guyplusplus/Kibana-Plugin-Custom-Form-Filter-Visualization-Legacy) is for 7.6 legacy architecture.
9
+
This repository is for Kibana v7.7 while [this repository](https://github.com/guyplusplus/Kibana-Plugin-Custom-Form-Filter-Visualization-Legacy) is for 7.6 legacy architecture.
10
10
11
11
## Sample Screenshots
12
12
@@ -27,7 +27,7 @@ $ sudo apt install curl
27
27
$ sudo apt install openjdk-11-jre-headless
28
28
```
29
29
30
-
2. Install latest kibana and elasticsearch via apt
30
+
2. Install latest Kibana and ElasticSearch via apt
For testing purpose, it may be required to install a specific (not latest) version of kibana or elasticsearch.
39
+
For testing purpose, it may be required to install a specific (not latest) version of kibana or ElasticSearch.
40
40
41
41
```
42
-
$ sudo apt-get remove kibana
43
-
$ sudo apt-get install kibana=7.6.2
42
+
$ sudo apt-get remove kibana [for latest version]
43
+
$ sudo apt-get install kibana=7.6.2 [for a specific version]
44
44
```
45
45
46
46
3. Adjust listening IP address of kibana if network access is required
@@ -55,7 +55,6 @@ $ sudo vi /etc/kibana/kibana.yml
55
55
```
56
56
$ sudo systemctl start elasticsearch
57
57
$ curl -X GET "localhost:9200"
58
-
...
59
58
$ sudo systemctl start kibana
60
59
$
61
60
```
@@ -82,20 +81,22 @@ $ git checkout v7.6.2
82
81
83
82
7. Copy the source code with modified name inside `kibana/plugins`
84
83
85
-
8. Start in dev. mode, ensuring only OSS (Open Source) is used
84
+
8. Start in development mode, ensuring only OSS (Open Source) is used
86
85
87
-
nvm use
88
-
yarn kbn bootstrap
89
-
yarn start --oss
86
+
```
87
+
$ nvm use
88
+
$ yarn kbn bootstrap
89
+
$ yarn start --oss
90
+
```
90
91
91
92
9. Kernel values for file monitoring may be required
92
93
93
94
```
94
-
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
95
-
sudo sysctl -p
95
+
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
96
+
$ sudo sysctl -p
96
97
```
97
98
98
-
10. If you have problem to start Kibana dev 7.7.0 with ElasticSearch 7.7.0, add this line in kibana config file
99
+
10. If you have problem to start Kibana dev 7.7.0 with ElasticSearch 7.7.0, add this line in `config/kibana.yml` config file. When upgrading from 7.6 to 7.0 I had to delete all indexes `curl -XDELETE localhost:9200/*`.
0 commit comments