1 Star 0 Fork 0

djkloop/elasticvue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
5年前
Loading...
README
MIT

elasticvue

Build Status Dependency Status Chrome web store Edge extension Firefox addon Docker build

Elasticsearch gui for your browser https://elasticvue.com

Demo

Contents

  1. About
  2. Usage
  3. Browser support
  4. Troubleshooting
  5. Comparing with other frontends
  6. Development
  7. Contributing

About

Elasticvue is a gui for elasticsearch allowing you to search and filter your clusters data right in your browser. Screenshots

It officially works with the following elasticsearch versions:

  • 5.6
  • 6.8
  • 7.x

Other versions might or might not work depending on the features you use.

Features

  • Cluster overview
  • Index management
  • Searching and filtering documents
  • Manually running any query against your cluster
  • Snapshot + repository management
  • Utilities, e.g. deleting all indices

Usage

Running

You can use one of the following ways to run elasticvue:

Browser extensions

Start elasticvue by clicking on the icon in your toolbar.

Docker

Use the existing image:

Or build the image locally:

  • Checkout the repo git clone https://github.com/cars10/elasticvue.git
  • Open the folder cd elasticvue
  • Build docker build -t elasticvue .
  • Run docker run -p 8080:8080 elasticvue

Or use docker-compose:

  • docker-compose up -d

Then open http://localhost:8080 in your browser.

Online version

Visit http://app.elasticvue.com or https://app.elasticvue.com.

Run locally

  • Checkout the repo git clone https://github.com/cars10/elasticvue.git
  • Open the folder cd elasticvue
  • Install dependencies yarn install
  • Run a production server via yarn prod or dev server yarn serve

Alternatively run yarn build and host the assets yourself. Example nginx config:

server {
  listen 80;
  server_name yourdomain.com;
  root /var/www/elasticvue_app/dist;
  location / {
    try_files $uri $uri/ /index.html?$args;
  }
}

See the official vuejs deployment guide for more details.

Elasticsearch configuration

You have to enable CORS to allow connection to your elasticsearch cluster if you do not use the browser extensions.

Find your elasticsearch configuration (for example /etc/elasticsearch/elasticsearch.yml) and add the following lines:

# enable CORS
http.cors.enabled: true

# Then set the allowed origins based on how you run elasticvue. Chose only one:
# for docker / running locally
http.cors.allow-origin: "http://localhost:8080"
# online version
http.cors.allow-origin: /https?:\/\/app.elasticvue.com/

# and if your cluster uses authorization you also have to add:
http.cors.allow-headers: X-Requested-With,Content-Type,Content-Length,Authorization

If you use docker to run your elasticsearch cluster you can pass the options via environment variables:

docker run -p 9200:9200 \
           -e "http.cors.enabled=true" \
           -e "http.cors.allow-origin=/.*/" \
           elasticsearch

This also works for docker-compose:

services:
  elasticsearch:
    image: elasticsearch
    environment:
      - http.cors.enabled=true
      - http.cors.allow-origin=/.*/
    ports:
      - 9200:9200

After configuration restart your cluster and you should be able to connect.

Browser Support

Please use an up-to-date version of:

  • Chrome / Chromium
  • Firefox
  • Edge (2020, Chrome based)

Troubleshooting

Before opening an issue please try to reset elasticvue to its default settings. To do so, click Disconnect and reset in the footer. This will reset all your saved filters and you have to reconnect to your cluster. Feel free to open an issue if your problem persists.

Comparing with other frontends

See the Wiki. Comparing to other frontends

Development

Setup and running

# clone
git clone https://github.com/cars10/elasticvue.git
cd elasticvue

# install dependencies
yarn install

# serve with hot reload at localhost:8080
yarn serve

# tests
yarn test:unit   # add --watch to watch test files

# for e2e tests you need a running elasticsearch server on port 9123
yarn test:e2e    # add --headless for headless mode

Other commands

# linting
yarn lint

# minimized build for production
yarn build

# create bundle size report at dist/report.html, dist/legacy-report.html
yarn build --report

Building the chrome/firefox extensions: (Hint: you need web-ext for the firefox extension to build)

yarn build_browser_extensions

Contributing

See CONTRIBUTING.md.

TODO

  • Search: Button "into Rest"
  • navbar cluster health: reload interval {red:1,yellow:10,green:30}

1.0

  • switch to vue-composition-api
  • document, index, snapshot repo and snapshot: add edit/delete
  • catch elasticsearch 5xx errors

Future

  • search manually via query dsl
  • home hover lines
  • display rest query results in table
  • cluster settings
  • data import/export

Internal stuff and refactorings

  • add more specs
  • refactor vuex state to use actions?

License

MIT

MIT License Copyright (c) 2017 Carsten König Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
README
MIT
取消

发行版

暂无发行版

贡献者 (2)

全部

近期动态

接近5年前创建了仓库
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/djkloop-zjl/elasticvue.git
git@gitee.com:djkloop-zjl/elasticvue.git
djkloop-zjl
elasticvue
elasticvue
master

搜索帮助