Skip to content

Commit 772b883

Browse files
author
guyplusplus
committed
added shell script hint
1 parent 9869b69 commit 772b883

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Few screen shots which makes it very easy to understand.
2424

2525
1. Install curl and JRE
2626

27-
```
27+
```shell
2828
$ sudo apt install curl
2929
$ sudo apt install openjdk-11-jre-headless
3030
```
@@ -41,21 +41,21 @@ $ sudo apt install kibana
4141

4242
For testing purpose, it may be required to install a specific (not latest) version of kibana or ElasticSearch.
4343

44-
```
44+
```shell
4545
$ sudo apt remove kibana [for latest version]
4646
$ sudo apt install kibana=7.8.0 [for a specific version]
4747
```
4848

4949
3. Adjust listening IP address of kibana if network access is required
5050

51-
```
51+
```shell
5252
$ sudo vi /etc/kibana/kibana.yml
5353
server.host: "192.168.1.77" [update with correct IP value]
5454
```
5555

5656
4. Start ElasticSearch, possibly upload the accounts test data, then start Kibana. Then open browser http://192.168.1.77:5601 [update with correct IP value]
5757

58-
```
58+
```shell
5959
$ sudo systemctl start elasticsearch
6060
$ curl -X GET "localhost:9200"
6161
$ curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/bank/account/_bulk?pretty' --data-binary @accounts.json [optional]
@@ -64,7 +64,7 @@ $ sudo systemctl start kibana
6464

6565
5. Now to create a development environment, download nvm, git client and yarn
6666

67-
```
67+
```shell
6868
$ curl https://raw.githubusercontent.com/creationix/nvm/v0.25.0/install.sh | bash [then open a new terminal]
6969
$ nvm install 10.21.0
7070
$ sudo apt install git
@@ -76,7 +76,7 @@ $ sudo apt install yarn
7676

7777
6. Download Kibana source code. . After download, `kibana` is the top directory. Then select the target version by selecting a tag or a branch (v7.6.2, v7.8.0, v7.8, etc.)
7878

79-
```
79+
```shell
8080
$ git clone https://github.com/elastic/kibana.git
8181
$ cd kibana
8282
$ git checkout v7.8.0
@@ -86,7 +86,7 @@ $ git checkout v7.8.0
8686

8787
8. Start Kibana in development mode, ensuring only OSS (Open Source Software) features are used
8888

89-
```
89+
```shell
9090
$ cd kibana
9191
$ nvm use
9292
$ yarn kbn bootstrap
@@ -95,14 +95,14 @@ $ yarn start --oss
9595

9696
9. Kernel values adjustment for large number of file monitoring may be required
9797

98-
```
98+
```shell
9999
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
100100
$ sudo sysctl -p
101101
```
102102

103103
10. If you have problem to start Kibana 7.8.0 (from Git. For some reason it thinks it is already in version 8.0.0) with ElasticSearch 7.8.0 with the error message `[error][savedobjects-service] This version of Kibana (v8.0.0) is incompatible with the following Elasticsearch nodes in your cluster: v7.8.0 @ 127.0.0.1:9200 (127.0.0.1)`, add this line in `config/kibana.yml` config file. When upgrading from 7.6.2 to 7.8.0 I had to delete all indexes `curl -XDELETE localhost:9200/*`
104104

105-
```
105+
```shell
106106
elasticsearch.ignoreVersionMismatch: true
107107
```
108108

@@ -159,14 +159,14 @@ vis_type_custom_form_filter_accounts_7.8.0_1.0.0.zip
159159

160160
The plugin can then be installed like this for an apt installed Kibana.
161161

162-
```
162+
```shell
163163
$ sudo ./bin/kibana-plugin --allow-root install file:///home/john/downloads/vis_type_custom_form_filter_accounts_7.8.0_1.0.0.zip
164164
$ sudo ./bin/kibana-plugin --allow-root install https://github.com/guyplusplus/Kibana-Plugin-Custom-Form-Filter-Visualization/releases/download/1.0.0/vis_type_custom_form_filter_accounts_7.8.0_1.0.0.zip
165165
```
166166

167167
Deleting then installing the plugin often fails for me. I fix it by running this command.
168168

169-
```
169+
```shell
170170
$ sudo ./bin/kibana-plugin --allow-root remove vis_type_custom_form_filter_accounts
171171
Removing vis_type_custom_form_filter_accounts...
172172
Plugin removal complete

0 commit comments

Comments
 (0)