2.3: Field Focus

Objective:

In this lab, you will create visualizations of the web logs sample data and add them to your dashboard.

  1. In Kibana, open the Discover interface by clicking on:

    • > Analytics > Discover
  2. Set your context to use the Kibana Sample Data Logs data view for the last 7 days. If your Discover interface still contains filters and queries from the previous lab, make sure to click on the New button to clear the view:

    "Discover new"

    Your view should look like this:

    "Discover 7 day view"

    Note: you may already have this view from the previous lab. If you view does not load, you may need to refresh the page.

  3. Let's focus in on a single field. In the Fields List, search for geo.dest and then click on the field and click Visualize.

    "Discover to Lens"

  4. This opens a simple Lens visualization of the top 5 destination countries.

    "Lens default"

  5. This view is a little dull. In the Suggestions area, select the Donut visualization type. (This step can also be done with the Visualization type dropdown.)

    "Lens donut"

  6. Expand the top 5 to the top 15, and get rid of the Other slice.

    Show answer

    In the Layer Pane, click Top 5 values of geo.dest to edit the field. Increase the Number of values to 15. Expand Advanced and de-select Group other values as "Other". Your donut should be much more colorful now.

    "colorful donut"

  7. Let's change our view one more time to a Treemap. This will appear as a panel of colorful boxes in the Suggestions area, or if not available there, can be found from the Visualization types dropdown. Changing to the treemap keeps all the settings for the number of values.

    "colorful treemap"

  8. There is a lot more that can be done with Lens. We'll see more of that in future modules. For now, let's save this visualization. Click Save in the upper right hand corner. Name your visualization Top Destinations, select Existing under Add to dashboard and add to your Logs Overview, then click Save and go to Dashboard.

    "Lens save dialog"

  9. Click Save to save your Dashboard.

  10. Navigate back to Discover.

  11. In the field list search for the field named geo.coordinates, click on the field name and then click the Visualize button.

    "Discover to Maps"

  12. As the field is of type geo point, the previous action will open the field with the Maps visualization tool, instead of Lens.

    "Maps tool"

  13. The Maps tool will be investigated in more detail in the next module. For now, save the visualization to your Logs Overview dashboard with the Save dialog. Name the visualization Simple Logs Map, and click Save and go to Dashboard.

  14. Your Logs Overview dashboard now opens with all of your visualizations available. Be sure to Save the dashboard!

  15. Hover on the Treemap visualization with your mouse, a tooltip will appear. Click one of the sections of the treemap to create a filter on the fly. The filter will be applied to all visualizations in the dashboard.

    "Treemap filter"

  16. Load your saved query CN-404 Query in your dashboard. This replaces the filter you created from the treemap.

Summary:

In this lab, you created new Maps and Lens visualizations of the web logs data and added them to your dashboard. You also created a filter from a visualization and loaded a saved query.