I created a dashboard that shows visualizations . Each visualization references a different Kibana data view. And each kibana data view references a different index.
For example, let's say I have two indices with the following mappings:
timesheet: project_id, assignment_id, billable_hours
cost_estimate: project_id, assignment_id, dollar_amount
Then I made two Kibana views that have the same name as the indices and also use the same mappings.
Then I went to Kibana dashboards and made a few visualizations. For example:
Bar Graph with X-Axis showing timesheet.assignment_id and Y-Axis showing SUM(timesheet.billable_hours)
Bar Graph with X-Axis showing cost_estimate.assignment_id and Y-Axis showing SUM(cost_estimate.dollar_amount)
Then I went back to my dashboard to see all the visualizations. Then I went to this filter:
And I tried to make this expression
timesheet.project_id == 2012 OR cost_estimate.project_id == 2012
But Kibana will only accept ONE of either timesheet.project_id == 2012
(as shown in red highlight) OR cost_estimate.project_id == 2012
(as shown in purple highlight)
How do I make an OR statement across both data views? Is it even possible
If not, how would I go about having a dashboard that can do something similar? As a last resort, I could have one index like this:
content: project_id, assignment_id, content_type, billable_hours, dollar_amount
Where the field content_type
can be the value timesheet
or cost_estimate
.