Formatting reference
Applying consistent text formatting improves readability and helps users locate information in Splunk documentation. Follow these formatting conventions for semantic tags and hard-coded text.
Applying formatting to elements in text assists readers in their understanding of that text. Using consistent text formatting also helps readers scan text for the information they're looking for. Depending on whether you're using semantic tags as you write or if you're hard-coding text, follow these formatting conventions when you write Splunk documentation.
Documentation elements
Review the following table for formatting guidance on documentation elements:
| Element | Format | Examples |
|---|---|---|
| Error, success, and other system messages |
For semantic tags, use For hard-coded text, use inline monospaced font or monospaced font block, depending on message length. |
CODE
|
|
No semantic tag or formatting. Don't include spaces in the shortcut. |
|
|
| Measurements | No semantic tag or formatting. |
|
| Words that are offset from the meaning of your sentence |
No semantic tag or formatting. Encase in quotation marks. |
Search for "Query tables" on the Microsoft website. |
| Words that you want to emphasize |
Don't use bold, italics, or all capital letters to emphasize a word. |
Do not exceed your license limit. |
-
For topic titles and section headings, see Naming guides, topics, and sections.
-
For system messages in a GUI, see Error and warning messages and Success messages in the UI text style guidelines.
Computer elements
Review the following table for formatting guidance on computer elements:
| Element | Format | Examples |
|---|---|---|
| Directories, folders, repositories |
For semantic tags, use For hard-coded text, use inline monospaced font. If using a placeholder variable in the file path, format the placeholder variable following the guidance later in this table. |
|
| Expressions |
For semantic tags, use For hard-coded text, use inline monospaced font. |
|
| Environment variable (key) |
Use all capital letters. For semantic tags, use For hard-coded text, use inline monospaced font. |
|
| Environment variable (value) |
For semantic tags, use For hard-coded text, use inline monospaced font. |
|
| File extensions |
For semantic tags, use For hard-coded text, use inline monospaced font. |
|
| File names |
For semantic tags, use For hard-coded text, use inline monospaced font. |
Navigate to the fields.conf file. |
| File paths |
List both the *nix and Windows file paths, in that order. For semantic tags, use For hard-coded text, use inline monospaced font. |
|
| File types | No semantic tag or formatting. |
|
| Hosts and ports | No semantic tag or formatting. |
|
| Menu paths |
For semantic tags, use For hard-coded text, use bold type and the word "then" or equivalent text to separate the names of the menus. |
|
| Placeholder variables |
For semantic tags, use For monospaced code blocks or hard-coded text, use angle brackets. |
|
| Tags (HTML, XML) |
For semantic tags, use For hard-coded text, use inline monospaced font. |
|
| UI elements, including menu items, drop-down lists, buttons, panels, and dialog boxes |
For semantic tags, use For hard-coded text, use bold type. |
|
| URIs, URLs |
Include http:// or https:// and www. Don't capitalize any letters in the link. For semantic tags, use |
Open https://prof.spacebridge.spl.mobi/health_check in a web browser. |
| User input in the UI |
For semantic tags, use For hard-coded text, use bold type. |
|
Splunk-specific elements
Review the following table for formatting guidance on Splunk-specific elements:
| Element | Format | Examples |
|---|---|---|
| Index names |
For semantic tags, use For hard-coded text, use bold type. |
|
| Input names |
For semantic tags, use For hard-coded text, use bold type. |
|
| Knowledge objects, such as fields, field values, event types, lookups, tags, alias, and data models |
For semantic tags, use For hard-coded text, use inline monospaced font. |
|
| Searches |
For semantic tags, use For hard-coded text, use the search bar or monospaced font block. For guidance on including line breaks in search commands, see Formatting Splunk searches. |
See the following topics for search examples:
|
| Search results |
For semantic tags, use For hard-coded text, use a search table. |
For a search result example, see untable. |
| Source types |
For semantic tags, use For hard-coded text, use inline monospaced font. |
This entry defines the access_combined source type. |
| SPL and SPL2 clauses |
Use all capital letters. No semantic tag or formatting. |
|
| SPL and SPL2 commands, elements, functions, and macros |
For semantic tags, use For hard-coded text, use inline monospaced font. |
|
| Splexicon links |
Use an inline link with bold type. For guidance on Splexicon links, see Formatting links in Splunk documentation. |
Use geospatial lookups to return results that Splunk software can use to generate a choropleth map visualization. |
| Tenant names |
For semantic tags, use For hard-coded text, use bold type. |
|
| Token names |
For semantic tags, use For hard-coded text, use bold type. |
|
| User roles and capabilities |
For semantic tags, use For hard-coded text, use bold type. |
|
Configuration files
Review the following table for formatting guidance on configuration files:
| Element | Format | Examples |
|---|---|---|
| Attributes or settings |
For semantic tags, use For hard-coded text, use inline monospaced font. |
|
| Configuration files in text |
For semantic tags, use For hard-coded text, use a monospaced font block. |
See the following topics for configuration file examples:
|
| Configuration file names |
For semantic tags, use For hard-coded text, inline monospaced font. |
Navigate to the fields.conf file. |
| Configuration file parameters, arguments, and stanza names in text |
Enclose stanza names in square brackets. For semantic tags, use For hard-coded text, use inline monospaced font. |
|
| Values |
For semantic tags, use For hard-coded text, use inline monospaced font. |
|
Command-line interface (CLI) elements
Review the following table for formatting guidance on CLI elements:
| Element | Format | Examples |
|---|---|---|
| A complete command |
For semantic tags, use For hard-coded text, use inline monospaced font. |
For a complete command example, see Manage secret storage using the Splunk REST API in the Splunk Developer Portal. |
| Command line arguments in a numbered list or longer than 1 line |
For semantic tags, use For hard-coded text, use a monospaced font block. |
See the following topics for command line argument examples: |
| Command line arguments in a paragraph |
For semantic tags, use For hard-coded text, use inline monospaced font. |
You can use the command line by entering ./splunk apply cluster-bundle in the CLI. |
| Command names |
For semantic tags, use For hard-coded text, use inline monospaced font. |
Run the btool command. |
| Command options or parameters |
For semantic tags, use For hard-coded text, use inline monospaced font. If using a placeholder variable, format the variable following the guidance in Computer elements. |
|
REST API elements
Review the following table for formatting guidance on REST API elements:
| Element | Format | Examples |
|---|---|---|
| API names | No semantic tag or formatting. |
|
| Endpoint name |
For semantic tags, use For hard-coded text, use bold type. |
|
| Endpoint path |
For semantic tags, use For hard-coded text, use inline monospaced font. |
/system/provisioner/v1beta1/tenants |
| HTTP or REST API method type | Use all capital letters. | Submit a GET request. |
| HTTP or REST API methods in use |
For semantic tags, use For hard-coded text, use a monospaced font block. |
CODE
|
| JSON bodies |
For semantic tags, use For hard-coded text, use a monospaced font block. |
For a JSON body example, see REST Custom Function. |
| Object names |
For semantic tags, use For hard-coded text, use bold type. |
|
| REST API requests and responses |
For semantic tags, use For hard-coded text, use a monospaced font block. |
For a REST API example, see Submit an app for inspection in the Splunk Developer Portal. |
| REST response body |
For semantic tags, use For hard-coded text, use a monospaced font block. |
For a REST response body example, see Submit an app for inspection in the Splunk Developer Portal. |
| Request parameter |
For semantic tags, use For hard-coded text, use inline monospaced font. |
"earliest_time": "-30m" |
| Returned REST response value |
For semantic tags, use For hard-coded text, use inline monospaced font. |
IACQlgX2dSVNz7HVDRA9StAm0j |
Code elements
Review the following table for formatting guidance on code:
| Element | Format | Examples |
|---|---|---|
| Arguments |
For semantic tags, use For hard-coded text, use inline monospaced font. |
Pass in arg1 as the argument for the param1 parameter and arg2 as the argument for the param2 parameter. |
| Classes |
Capitalize class names with medial capitals. For semantic tags, use For hard-coded text, use inline monospaced font. |
The MyClass class |
| Code elements and usage |
For semantic tags, use For hard-coded text, use inline monospaced font. |
|
| Code examples |
For semantic tags, use For hard-coded text, use a monospaced font block. |
See the following topics for code examples:
|
| Constants | Use all capital letters. | DEBUG_STREAMEVENTS |
| Function names |
For semantic tags, use For hard-coded text, use bold type. |
|
| Functions in use |
For semantic tags, use For hard-coded text, use a monospaced font block. |
CODE
|
| Hexadecimal numbers | Use all capital letters for alphabetical characters. |
|
| HTTP status codes |
Use a lowercase "x" to represent a range. For semantic tags, use For hard-coded text, use inline monospaced font. |
|
| Methods |
For semantic tags, use For hard-coded text, use inline monospaced font. |
The myMethod method |
| Metrics |
For semantic tags, use For hard-coded text, use inline monospaced font. |
A server cluster that has 100 host machines might report a single set of metrics named cpu.utilization, api.calls, and dropped.packets. |
| Parameter names |
For semantic tags, use For hard-coded text, use bold type. |
|
| Placeholder variables |
For semantic tags, use For monospaced code blocks or hard-coded text, use angle brackets. |
Open the /etc/apps/your_app_name/appserver/ folder.
CODE
|
| Property names |
For semantic tags, use For hard-coded text, use bold type. |
|
| Properties in use |
For semantic tags, use For hard-coded text, use a monospaced font block. |
For an example of a property in use, see Configure the Java agent for Splunk Observability Cloud. |
| Simple XML elements |
For semantic tags, use For hard-coded text, use inline monospaced font. |
Find the <title>all</title> element. |
| Simple XML source code for dashboards |
For semantic tags, use For hard-coded text, use a monospaced font block. |
For an example of Simple XML source code, see Editing Simple XML. |
| User-created values |
For semantic tags, use For hard-coded text, use bold type. |
|