Skip to content

Commit c617f41

Browse files
committed
Add Kibana Saved Objects
This commit adds Kibana Saved Objects and instructions on how to import into Kibana. It also updates the indexer to netcoreapp3.0 and NEST to 7.4.1
1 parent 0639356 commit c617f41

File tree

4 files changed

+41
-7
lines changed

4 files changed

+41
-7
lines changed

README.md

+21-5
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Explore the Stack Overflow data set with the Elastic Stack using this gentle int
44

55
## Prerequisites
66

7-
1. Download at least [Elasticsearch 7.3.2](https://www.elastic.co/downloads/elasticsearch)
8-
2. Download at least [Kibana 7.3.2](https://www.elastic.co/downloads/kibana) _(version must match same version as Elasticsearch)_
9-
3. Install [.NET Core 2.2](https://dotnet.microsoft.com/download/dotnet-core/2.2)
7+
1. Download at least [Elasticsearch 7.4.2](https://www.elastic.co/downloads/elasticsearch)
8+
2. Download at least [Kibana 7.4.2](https://www.elastic.co/downloads/kibana) _(version must match same version as Elasticsearch)_
9+
3. Install [.NET Core 3.0](https://dotnet.microsoft.com/download/dotnet-core/3.0)
1010
4. Download latest [Stack Overflow data set](https://archive.org/details/stackexchange)
1111
- Under 7Z files, choose `stackoverflow.com-Posts.7z` , `stackoverflow.com-Users.7z` and `stackoverflow.com-Badges.7z`
1212
5. Unzip Stack Overflow data set to a directory. You'll need around 90GB of available space!
@@ -40,7 +40,7 @@ Explore the Stack Overflow data set with the Elastic Stack using this gentle int
4040
4141
## Indexing data
4242
43-
1. Navigate to `StackOverflow.Indexer/bin/Release/netcoreapp2.2` directory from the root of the solution. There should be a compiled `StackOverflow.Indexer.dll` file in the directory from compiling the solution in previous steps.
43+
1. Navigate to `StackOverflow.Indexer/bin/Release/netcoreapp3.0` directory from the root of the solution. There should be a compiled `StackOverflow.Indexer.dll` file in the directory from compiling the solution in previous steps.
4444
4545
2. Check available options for indexing posts or users using `--help` argument
4646
@@ -73,7 +73,7 @@ Explore the Stack Overflow data set with the Elastic Stack using this gentle int
7373
5. (Optional) Update answers with tags
7474
7575
If you'd like to be able to filter both questions and answers using tags, it can be useful to denormalize question tags onto
76-
answers. The source data can be transformed before ingesting to do this, but can also be achieved using the update by query API
76+
answers. The source data _can_ be transformed before ingesting to do this, but can also be achieved using the update by query API, which is what this command does.
7777
7878
```
7979
dotnet .\StackOverflow.Indexer.dll tags -e "http://localhost:9200" -f "/path/to/Posts.xml"
@@ -82,6 +82,22 @@ Explore the Stack Overflow data set with the Elastic Stack using this gentle int
8282
This can take a few hours. The `-s` argument can be used to change the number of concurrent updates, so depending on the performance of
8383
the cluster into which you're indexing, you may be able to increase this to speed up the process.
8484
85+
## Import Kibana Saved Objects
86+
87+
The [`kibana_saved_objects_742.ndjson`](/kibana/kibana_saved_objects_742.ndjson) file can be
88+
imported into Kibana to apply some preconfigured saved queries, visualizations and a dashboard:
89+
90+
![Kibana Dashboard](images/kibana_dashboard.png)
91+
92+
1. Navigate to `Management` menu item within Kibana
93+
2. Under Kibana, select `Saved Objects`
94+
3. Select `Import` and choose the `kibana_saved_objects_742.ndjson` file.
95+
96+
There should now be
97+
98+
- a Dashboard under the `Dashboard` menu item
99+
- a collection of Vizualizations under `Vizualize` menu item
100+
- a collection of Saved Queries under `Discover` menu item
85101
86102
## License
87103

StackOverflow.Indexer/StackOverflow.Indexer.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp2.2</TargetFramework>
5+
<TargetFramework>netcoreapp3.0</TargetFramework>
66
<Company />
77
<AssemblyVersion>1.0.0</AssemblyVersion>
88
<FileVersion>1.0.0</FileVersion>
@@ -11,7 +11,7 @@
1111

1212
<ItemGroup>
1313
<PackageReference Include="CommandLineParser" Version="2.6.0" />
14-
<PackageReference Include="NEST" Version="7.3.0" />
14+
<PackageReference Include="NEST" Version="7.4.1" />
1515
</ItemGroup>
1616

1717
</Project>

images/kibana_dashboard.PNG

219 KB
Loading

0 commit comments

Comments
 (0)