Using server-side include in a complex dashboard

You can also develop static pages as HTML documents, referencing other files in the same directory. Let's build a slightly more complicated page using graph.png, and also a style from application.css, as follows:

  1. Place graph.png and application.css into a directory.
  2. Create a new HTML file. Let's name it intro.html.
  3. Add any styles for your page to application.css.
  4. Upload the new HTML file and the modified CSS file.
  5. Create the dashboard referencing the HTML file.

Starting with the HTML from our previous example, let's make it a complete document. Move the image to a CSS style and add a class to our text, like this:

<html> <head> <link rel="stylesheet" type="text/css" href="application.css" ...

Get Implementing Splunk 7 - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.