Skip to content

Commit 98ac563

Browse files
authored
Merge pull request #23 from billmurrin/update-docs-for-3.0.0
Update docs for 3.0.0
2 parents c2e84a8 + f47d7a7 commit 98ac563

File tree

1 file changed

+67
-72
lines changed

1 file changed

+67
-72
lines changed

README.md

Lines changed: 67 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,64 @@
33
[![GitHub Release](https://img.shields.io/github/release/billmurrin/graylog-plugin-quickvaluesplus-widget.svg)](https://github.com/billmurrin/graylog-plugin-quickvaluesplus-widget/releases)
44
[![Build Status](https://travis-ci.org/billmurrin/graylog-plugin-quickvaluesplus-widget.svg?branch=master)](https://travis-ci.org/billmurrin/graylog-plugin-quickvaluesplus-widget)
55

6-
The QuickValuesPlus Widget is an enhanced fork of the GrayLog2 Quick Values Widget that ships with GrayLog2.
6+
The QuickValuesPlus Widget is an enhancement to the Quick Values Widget that ships with GrayLog2. The QuickValuesPlus Widget can be added to a Stream as a Field Analyzer and to Dashboards as a widget.
77

8-
When the QuickValuesPlus Widget is added to Search as a field analyzer it adds a "Remove from search" button. The button will negate the field in the search bar (E.g. !field_name:foo).
8+
Several **NEW** features have been added to version 3.0.0 (See below). Version 3.0.0 is only compatible with Graylog 2.3.0 and above.
99

10-
![alt text](http://i.imgur.com/uthGeG1.png "Remove From Search Button")
1110

12-
In addition, the QuickValuesPlus Widget has extra features when added to dashboards, such as:
13-
* Support for **ascending** OR **descending** sort order in the datatable. Can now obtain true bottom values.
14-
* Editable number of Top/Bottom values (Quick Values default is 5). This is the one with a color in the table.
15-
* Customizable table size (Quick values default is 50).
16-
17-
![alt text](http://i.imgur.com/7PLDXCW.png "Example of Configuration Options")
11+
Field Analyzer Features
12+
-----------
13+
- "Customize" menu supports modifying the Sort Order (Ascending or Descending), Table Size and number of Top Values displayed by the widget.
14+
- Exclude from search button - Add negated search directly to the Search Bar (E.g. !field_name:foo).
15+
16+
*Field Analyzer Features*
17+
![alt text](http://i.imgur.com/H9SRkRo.png "Field Analyzer Features")
1818

19-
In version 2.1.0, the Customize menu was introduced to help control the sort order, number of top values and the table size of the plugin when used on a Search page.
2019

21-
![alt text](http://i.imgur.com/TsZQxil.png "Example of Options Menu")
20+
New Dashboard Features
21+
-----------
22+
- Widgets now contain links so that you can drill into a Term search and view the results.
23+
- Widgets now contain a button to open the Term search inside of a new window.
24+
- Added Exclude Term from Query button - Negate a search term directly from the widget (Requires dashboard edit permissions)
25+
26+
*NEW - Version 3 Dashboard Features*
27+
![alt text](http://i.imgur.com/viZ3AoK.png "Version 3 Dashboard Features")
2228

23-
Customize Menu Caveat
29+
New Dashboard Congiguration Feature
2430
-----------
31+
- Can now customize the field name used by the widget (Requires dashboard edit permissions)
2532

26-
Right now, Graylog's REST API does not support a sort option for the RelativeSearch lookup on /terms (See Issue #7). I plan on doing a Pull Request on Graylog to add this feature.
2733

28-
With that means is that, at this time, we cannot obtain a "TRUE" ascending order query on the Search pages. The ascending order is generic as the underlying Elasticsearch query is based on descending order.
34+
*NEW - Version 3 Editable Field Name*
35+
![alt text](http://i.imgur.com/Ezs7DL3.png "Edit Field Name")
2936

30-
If you want a true ascending ordered, or Bottom-N, query, simply add the widget to a dashboard. The widget code does conduct a *TRUE* ascending ordered query.
37+
New Global System Configuration
38+
-----------
39+
- Can now Customize the Quick Values Plus default values in the System/Configuration page.
40+
41+
*NEW - Version 3 Globally Configurable Default Values*
42+
![alt text](http://i.imgur.com/DZHbWzh.png "System Global Default Values")
3143

3244
Supported Graylog Versions
3345
-----------
34-
* Version 2.1.0 was tested and is compatible with Graylog versions 2.2.1, 2.2.2, and 2.2.3
35-
* Version 1.0.0 was tested and is compatible with Graylog version 2.1.3. No Customize menu.
46+
* Version 3.0.0 was tested and is compatible with Graylog version 2.3.0 and above.
47+
* Version 2.1.0 was tested and is compatible with Graylog versions 2.2.1, 2.2.2, and 2.2.3.
48+
* Version 1.0.0 was tested and is compatible with Graylog version 2.1.3.
3649

37-
Please file a bug report providing as much detail as possible if you find that the plugin is not working.
50+
Features and Bugs
51+
-----------
52+
If you come across a bug, require further assistance, or have a great feature request, please file an [Issue](https://github.com/billmurrin/graylog-plugin-quickvaluesplus-widget/issues) providing as much detail as possible.
53+
54+
Contributions to the code-base are greatly appreciated.
3855

3956
Related Graylog Issues
4057
-----------
4158
The following are Graylog issues that the QuickValuesPlus widget currently attempts to resolve.
4259
* [#2459](https://github.com/Graylog2/graylog2-server/issues/2459) - Reverse quick values/Bottom-N
4360
* [#2631](https://github.com/Graylog2/graylog2-server/issues/2631) - Feature request: rare values #2631
4461
* [#1684](https://github.com/Graylog2/graylog2-server/issues/1684) - Make number of terms in quick values widget configurable
62+
* [#3694](https://github.com/Graylog2/graylog2-server/issues/3694) - Add hyperlinks to "Quick Values" dashboard widgets
63+
* [#3394](https://github.com/Graylog2/graylog2-server/issues/3394) - Widgets has no way to edit all properties after creation
4564

4665
Installation
4766
------------
@@ -50,65 +69,41 @@ and place the `.jar` file in your Graylog plugin directory. The plugin directory
5069

5170
Restart `graylog-server` and you are done.
5271

53-
Way Ahead - Version 2.2.0
72+
Way Ahead - Version 3.1.0
5473
-----------
55-
* Add support to modify the field of the widget. (Issue #6)
56-
* Add HTML links to the dashboard (Issue #5)
57-
* Add code to make the Dropdown menu go away after a selection. (Issue #8)
58-
* Add a System Configuration menu to allow users to change the global defaults for sort order, top values, and table size. (Issue #9)
59-
74+
* Add additional Default Configuration options (show table, show pie chart, links, exclude query button)
75+
* Add ability to Turn Off links and/or exclude from Query buttons for each individual widget in the Widget Configuration.
76+
6077
Development
6178
-----------
62-
You can improve your development experience for the web interface part of your plugin dramatically by making use of hot reloading. To do this, do the following:
79+
You can improve your development experience for the web interface part of your plugin dramatically by making use of hot reloading.
6380

64-
* `git clone https://github.com/Graylog2/graylog2-server.git`
65-
* `cd graylog2-server/graylog2-web-interface`
66-
* `ln -s $YOURPLUGIN plugin/`
67-
* `npm install && npm start`
68-
69-
If you run into issues with the current snapshot you can clone the 2.2.3 version of Graylog by using the following:
70-
71-
`git clone -b "2.2.3" https://github.com/Graylog2/graylog2-server.git`
72-
73-
**TIP** If you happen to use "[graylog-project](https://github.com/Graylog2/graylog-project)" and are having issues with the plugin compiling properly or not loading on the page, ensure your plugin's package.json has the same dependcies as "[graylog-plugin-sample](https://github.com/Graylog2/graylog-plugin-sample)". The example below has a few additional packages (crossfilter, d3, dc, deep-equal and immutable).
81+
To hot reload using Graylog 2.3.0, your plugin directory should be located two directories above your graylog2-web-server directory (../../) and the folder name of your plugin should be begin with graylog-plugin (More info[HERE](https://github.com/Graylog2/graylog2-server/blob/2.3/graylog2-web-interface/webpack.combined.config.js#L11))
7482

83+
Steps for hot-loading setup with the plugin.
84+
* Clone the Repositories
7585
```
76-
"dependencies": {
77-
"reflux": "^0.2.12",
78-
"crossfilter": "1.3.x",
79-
"d3": "<=3.5.0",
80-
"dc": "2.0.0-beta.19",
81-
"deep-equal": "^1.0.1",
82-
"immutable": "^3.7.5"
83-
},
84-
"devDependencies": {
85-
"babel-core": "^6.0.0",
86-
"babel-loader": "^6.0.0",
87-
"babel-plugin-add-module-exports": "^0.2.1",
88-
"babel-polyfill": "^6.0.0",
89-
"babel-preset-es2015": "^6.0.0",
90-
"babel-preset-react": "^6.0.0",
91-
"babel-preset-stage-0": "^6.0.0",
92-
"clean-webpack-plugin": "^0.1.3",
93-
"graylog-web-manifests": "^2.0.0-SNAPSHOT-1",
94-
"graylog-web-plugin": "~0.0.21",
95-
"json-loader": "^0.5.4",
96-
"react": "^0.14.6",
97-
"react-bootstrap": "^0.28.2",
98-
"react-dom": "^0.14.6",
99-
"react-hot-loader": "^3.0.0-beta.3",
100-
"react-proxy-loader": "^0.3.4",
101-
"webpack": "^1.12.2"
102-
}
86+
git clone https://github.com/billmurrin/graylog-plugin-quickvaluesplus-widget.git
87+
git clone -b "2.3.0" https://github.com/Graylog2/graylog2-server.git
88+
```
89+
* Install the Node.JS modules
90+
```
91+
cd graylog-plugin-quickvaluesplus-widget
92+
npm install
93+
cd ../graylog2-server/graylog2-web-interface
94+
npm install
95+
```
96+
* Build the Vendor file (If you skip this, plugin might fail with an 'call an undefined function')
97+
```
98+
webpack --config webpack.vendor.js
99+
```
100+
* Start the web server
101+
```
102+
npm start
103103
```
104104

105-
Getting started
106-
---------------
107-
108-
This project is using Maven 3 and requires Java 8 or higher.
109-
110-
* Clone this repository.
111-
* Run `mvn package` to build a JAR file.
112-
* Optional: Run `mvn jdeb:jdeb` and `mvn rpm:rpm` to create a DEB and RPM package respectively.
113-
* Copy generated JAR file in target directory to your Graylog plugin directory.
114-
* Restart the Graylog.
105+
Steps to build the plugin.
106+
* Follow the steps above, but **DO NOT** run the `npm start` command. (no need to start the dev web-server)
107+
* Run `mvn package`
108+
* Copy the generated JAR file located in the target directory to the Graylog plugin directory.
109+
* Restart Graylog

0 commit comments

Comments
 (0)