Skip to content

Instantly share code, notes, and snippets.

View thibodux's full-sized avatar

Ryan Thibodeaux thibodux

View GitHub Profile
@thibodux
thibodux / macros.conf
Created January 9, 2018 15:12
Splunk marcro to list datamodel fields and their calling paths
# Splunk search macro to list all of the fields and their respective
# path / calling hierarchy within the passed datamodel
# (the $dm_name$ argument). This is useful for figuring
# out how to reference datamodel field names in tstats commands.
# Note, you need to prepend a leading pipe (|) to use this macro
# in a search, e.g., | `list_fields_by_datamodel_object("my_datamodel")`
[list_fields_by_datamodel_object(1)]
description = List of all fields in datamodel (arg1)
iseval = 0
@thibodux
thibodux / dashboard.css
Last active August 17, 2017 12:14
Splunk CSS to hide Splunk-specific links in the Splunk dashboard footer
/* These settings will hide the Splunk-specific links,
.e.g, About, Support, etc., from the footer
of Splunk dashboards. It will not affect the
Splunk copyright that appears in the footer */
/* hide footer links in Splunk 6.3 and 6.4 */
.footer > div > ul {
display: none !important;
}
@thibodux
thibodux / dashboard.css
Created July 22, 2017 10:49
Splunk CSS to hide Real-Time and All-Time options from time pickers
/* These CSS settings will hide often unwanted time
period options from all time pickers in SimpleXML
dashboards for the app containing this file.
These settings are only visual changes, i.e.,
users can still search using All-Time or Real-Time
settings if they know how to manually enter the
corresponding values */
/* hide real-time accordion tab in time pickers */
@thibodux
thibodux / dashboard.css
Last active July 2, 2019 16:13
Splunk CSS to simplify resizing SimpleXML form inputs
/* Splunk's SimpleXML classes for text boxes, drop downs, and
multiselect inputs have some odd CSS settings that make
it difficult to change the width of the whole entity with
a single CSS setting.
The following adjustments to the child input elements
are intended to overcome this challenge by making the
internal elements conform to the width setting of the
top-level container.
Using these settings for an entire app will allow a developer
to resize these type of inputs by simple adjusting the