OR operator in Kibana 4 - kibana

Is there a way to select filters with “OR” operator in Kibana 4?
e.g. I’d like to use filters like
PlatformName:"window" OR PlatformName:"linux" OR PlatformName:"android"
(PlatformName is a field)
I refer to this page to use filter.
https://www.timroes.de/2015/02/07/kibana-4-tutorial-part-2-discover/
"You can expand any field in the fields list on the left by clicking on it. It will reveal the list of the most common values for that field. Use the – and + magnifier icons to quickly add a filter for to show only documents having that value (+) or to exclude all documents with that value (-).
If you add filters that way, a bar will appear on the top below the search bar. Each filter will be displayed as a tag, that you can disable temporary or remove completely."
I found a similar question here:
OR filter on dashboard in Kibana 4

Definitely you can add OR filters in your dashboard. As dashboard is created from saved visualizations, In your visualization you can add filter containing OR which will reflect such data.
As per my understanding of your question I am posting my answer (Feel free to correct me):-
Clicking on pie chart under visualize tab (Create a new visualization).
Selecting a search source - From a new search
Go to Split Slices, select aggregation as filters.
Under Query1 enter the filter you want to apply such as PlatformName:("window" OR "linux").
Click on add Filter and add Query2 as: PlatformName:("android" OR "linux").
Click on Apply to view the changed pie chart as per filters.
Save Visualization by selecting it from toolbar (2nd option beside search bar).
Go to Dashboard & Click on Add Dashboard & select your saved visualization which will reflect your pie chart.
Hope it answers your question :)

Related

How to change url params of url on Looker dashboard based on dashboard filters

I have a dashboard in Looker which contains a button that is a url that goes to another look with more granular data than the dashboard. What I want to do is change the url params of this button based on what the user chooses in the filters on the dashboard. Anyone have any ideas?
You can use liquid variables in the URL of the button. There's a specific section on passing filter values.
The tricky part here though, is that the button will need to be based on a query result for this to work. Static text/markdown Dashboard elements do not support liquid, and so you need to have a single value chart that acts as the 'button'. The single value chart will be based on the Explore containing the fields used in the dashboard filters, so that their values are accessible by the liquid.
The easiest way to do this is probably via a dummy dimension, that just selects a string:
dimension: button {
sql: 'Button'
link: {
label: "My Link"
url: "/look/<1234>?f[destination_view_name.field_name]=_filters['view_name.field_name']"
}
}
Where 1234 is the ID of your look, destination_view_name.field_name is the fully scoped field name for the filter in the Look you are linking to, and view_name.field_name is the name of the Explore and field being filtered on in the Dashboard (that you want to carry through to the Look).

Microstrategy - deciding the title of graphs in dashboards

Everytime I put a graph in a dashboard it sets the title to the name of the dataset (report).
I'd like to decide it by myself. I searched a solution but i could not find it.
With Microstrategy desktop you can edit a graph (you can just double-click on it or click the edit icon), select the graph title and right-click, now you should have an option to Edit it.
Otherwise you can reach the section Titles and modify the Title.

Plone - How can I use faceted navigation?

I have a plone site and I have added a content type called game. There are now several games that have been added and that can be viewed. I would like to use the eea.facetednavigation module, which you can read about here: http://plone.org/products/eea.facetednavigation.
The idea behind faceted navigation is that one can quickly filter all the objects, which is like doing a search. For instance, I place all my games in one of about twelve categories according to genre. I have options like "adventure" "action" "puzzle" "roleplaying" and so on.
I would like to have an area on the side where the user can click "puzzle" and then have the page display only puzzle games. I would also like to duplicate this behavior elsewhere so the user can filter by price. Of course if the user filters on both, then that should work as well.
I'm imaginging about four or five different facets that the user can filter on. Now, I have placed eea.facetednavigation in my buildout.cfg file and when I log in as "admin" I see the option under my Games tab (where I have added some games) to enable faceted navigation. However, when I do this I get a useless screen that I can't understand and that does not allow me to set up the kind of filtering criteria that I have in mind. I have attached a screen shot.
As you can see on the screen shot, faceted navigation is giving me options for "video link", "video file", "page", "news item" and so forth. None of these are the fields associated with my games. If I cllick "more" on that portal type, I see an option called "games" -- because I have created that content type -- but selecting it doesn't give me the behavior I want.
It is hard to see in the screen shot, but the "Games" tab is highlighted at the top. That is the folder in which I have enabled faceted navigation, and that is the folder in which I have added several games.
I've tried reading the documentation on faceted navigation -- http://plone.org/products/eea.facetednavigation -- but I've been mulling it over for an hour and I just can't make head nor tail of it.
Assuming that 'price' is an integer-field of your contenttype, you need to enable it as an index in the portal_catalog in order to make it available as a criterion in an eea-searchform.
So, first register the Index in profiles/default/catalog.xml like this:
<?xml version="1.0"?> <object name="portal_catalog" meta_type="Plone Catalog Tool">
<index name="Price" meta_type="FieldIndex"> <indexed_attr value="getPrice"/> </index> </object>
And then in th eea-searchform add a widget hitting one of the plus-icons, choose f.e. the kind 'Range' and as Index choose 'Price'.
Proceed similar with your other fields, choose checkboxes for your category-widget, etc.
If you categorized your games using the standard Plone "Tags" functionality (on the "Categorization" tab if you edit content), then you should be able to simply add a "Select" widget and set it to search the "Tags" index (under "Catalog index to use for search").
I agree that the facetednavigation UI is rather obtuse.
Just add a widget of type "Checkboxes" and choose "Subject" from Catalog Index and choose "Yes" on "Catalog Get unique values from catalog as an alternative for vocabulary". This should gives you a list of checkboxes with the categories. Also add an hidden (you can hide it clicking on the eye icon) widget selected on the "games" type, so results are pre-filtered on that content types so "Subject" widget contains only the games category and not all from the site.
For the prize, follow the Ida answer.

drupal views filter automatically on node id

I would like to use a view to display some images on a node page.
So i created a bloc view showing the images in a nice slider but this shows all the images of all the node's.
I was wondering if there was a way to automatically filter out only the images that belong to the node that's currently being displayed.
I've read something about arguments but I don't really see how I can use them to accomplish this.
Add an argument of "Node: NID." For the "Action to take if argument is not present:" setting, select "Provide default argument", then "Node ID from URL."

Filtering out node by title

I have a site running in Drupal 6 and I'm using Views to display content from several feeds I am importing.
There is a node being created in one of the feeds that I do not want to have shown (or even created at all, if I can help it) & there doesn't appear to be a way to negatively filter out nodes from being displayed by title. Is there a way to do this with any efficiency or might there be some other hack around this?
Thanks in advance for any help you can provide.
-B
Views does allow you to filter out a node with a specific title. On the edit-view page, do the following:
Click the [+] on the Filters box
Check 'Node: Title' and click [Add]
Select 'Is not equal to' as operator and enter the unwanted title as value
Click [Update] and save your view
Why don't you just unpublish the nodes you don't want and add a filter for 'node:published = yes'. Unless the nodes you want to hide always have certain words in the title it will be hard to do it with a title filter.

Resources