I am working on a project and I need to insert some of Kibana Graphs in the app.
I've created a Kibana Dashboard using a JSON file, to visualize the index a specific index from Elasticsearch.
I want to automatize the creation of the Dashboard to use it with different indexes. Elasticsearch/ Kibana 7.1.1
Not sure there is a more elegant way, but what you can do is:
Export the dashboard(s) and include the related objects under: Management -> Saved Objects
Edit the exported .ndjson file. For example if you are building on the index pattern filebeat-* search for that and replace it with whatever you want to change it to.
Reimport the .ndjson file under Import in the Saved Objects.
Related
I have deployed my Elasticsearch server to the cloud: cloud.elastic.co
I have seen stopwords and synonyms documentation, which explain stopwords.txt/synonyms.txt files could be copied under config folder... but how can I do this on a cloud server?
I know I can pass the stopwords in an array, but using a file, it would be easier to update them:
Updating stopwords is easier if you specify them in a file with the
stopwords_path parameter. You can just update the file (on every node
in the cluster) and then force the analyzers to be re-created by
either of these actions
You have to use Custom Plugins section to manage any custom plugins, scripts or dictionaries (stopwords, synonymns, etc.)
Steps:
Create a zip file with the following directory structure:
.
|__ dictionaries
|__ stopwords.txt
Login to elastic cloud and go to Custom Plugins section
Click on Add Plugin
Fill in the relevant details and for the section Plugin Type select A bundle containing a dictionary or script
Click on Create Plugin
Go back to the Custom plugins page and click on the new plugin you just added.
Scroll to the bottom and upload the zip file created in first step.
Now you have to update your cluster so that its available to all the nodes. To do this follow the steps below:
Click on Deployment
Select your cluster/deployment form the page
On the menu in the left click on Edit.
Scroll to the section Elasticsearch plugins and settings on the
page. Click on Manage plugins and settings.
From the expanded list select your bundle (located under Custom
Plugins section in the expanded list).
On the bottom of the page click on Save Changes
Wait for the update activity to complete. Once completed you can now use stopwords.txt as below:
"stopwords_path": "stopwords.txt"
Here is the complete elastic cloud documentation.
Documentation page for adding plugin/script/dictionary is here.
I want to know how I get user information from liferay table in elasticsearch panel.Suppose I have created two users in liferay and reindex user entity then i want to get those data.Is there any way to get those user from elasticsearch panel located localhost:9200.My elasticsearch running in embedded mode.
I'm on my phone but I believe going into the search portlet's configuration and choosing to see results in document mode will give you what you're after.
Then search for the user and expand it's document view in the search results list.
Edit to add:
Click the options menu on the search portlet (kebab icon).
Click the Configuration option.
Click the Other Settings tab.
Choose Display Results in Document Form.
Search for a user.
Click Details... in the search results.
Edit again:
http://localhost:9200/liferay-20116/_search?q=screenName:wmozart
Gets you the document as well. My example is running ES on localhost:9200, the index name is liferay-20116 (leave it out to search all indices), and my user's Screen Name is wmozart.
I am trying to create dashboard with multiple different charts in them. I am confused. Do I have to create each charts, save them and then add them to the dashboard or within the dashboard, I can create different charts and add it to the dashboard?
Do I have to create each charts, save them and then add them to the
dashboard
Yes. To a visualization to dashboard you first need to creat it from Visualize tab and save it with a name. Afterwards you can add already created visualizations by clicking that button:
The empty page says it all:
I am using the .net application and using iframe to show the kibana dashboard. So just had control over URL to show the data on Kibana dashboard.
http://localhost:5601/#/dashboard/Name-Dashboard?embed=true&_g=(time:(from:now-6M,mode:quick,to:now),title:'Name%20Dashboard')
Now i want to filter the dashboard based on some application logic. So user will be shown data based on his settings. So need to add some query or filter to URL mentioned above. I checked the documentation for elastic search and there is provision for adding the query parameters from URL
http://localhost:9200/indexname/type/_search?q=field:fieldValue
But how I can add the query string in kibana so that the values will be passed to elastic search and dashboard is shown appropriately
http://localhost:5601/#/dashboard/Name-Dashboard?embed=true&_g=(time:(from:now-6M,mode:quick,to:now),title:'Name%20Dashboard')&_a=(query:(query_string:(analyze_wildcard:!t,query:'Field1:Value1)))
using _a query parameter we can add the filter
I cann't load saved dashboard. At browser console I see:
GET http://localhost:9200/kibana-int/dashboard/Your%20Basic%20Dashboard?1422529331315 404 (Not Found)
But at Elasticsearch folder I have kibana-int index. How to delete all my saved dashboard, open in browser start page and create new dashboard. Now at browser I see:
there is a .kibana index (unless you have modified the kibana.yml file to specify a custom name for the index). Within the .kibana index, there are separate types - search, index-pattern, dashboard and visualization.
All of your dashboards will be saved within the .kibana/dashboard index/type combination. that said, to create a default dashboard view looks at the response to this question : How to make our customised dashboard as default dashboard on kibana