Color themes
You can change the appearance of your search criteria by specifying a color theme. There are several themes to choose from.
| Theme name | Description |
|---|---|
| Default system theme | Inherits the default system theme. |
| Light | White background. Black text. Colors for commands, arguments, functions, keyword modifiers, and Boolean operators. |
| Dark | Black background. Light grey text. Colors for commands, arguments, functions, keyword modifiers, and Boolean operators. |
Color codes
The color coding that is used for the search syntax depends on the color theme that is implemented. The color codes for the Light and Dark themes are described in the following table.
| Syntax component | Color | Example |
|---|---|---|
| Commands | Blue | ... | timechart |
| Command arguments | Green | ... | timechart usenull=false |
| Functions | Pink | ... | timechart count |
| Keyword modifiers and Boolean operators | Orange | ... | timechart count BY productName |
| Inline comments | Gray | ... | timechart count '''Plots the count of results over the last 24 hours''' |
The following image shows syntax highlighting with the Dark theme.
Change the color theme
You change the color theme in the Search bar by using the account menu. You cannot change the color theme if you have a Splunk Free license. See About Splunk Free in the Admin manual.
- On the Splunk bar, select [User_account_name] > Preferences.
- Click SPL Editor.
- Confirm that Advanced editor is turned on.
- On the Themes tab, select the color theme that you want to use.
- Click Apply.