Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View yorokobi's full-sized avatar
😶‍🌫️

Colby W. yorokobi

😶‍🌫️
  • Saint George, Utah, United States
  • 08:19 (UTC -06:00)
View GitHub Profile
@yorokobi
yorokobi / var_log_foreman-installer_katello.log
Last active October 22, 2022 13:23
foreman-install w/katello and Puppet
foreman-installer --scenario katello --enable-foreman-plugin-puppet --enable-foreman-cli-puppet --foreman-proxy-puppet true --foreman-proxy-puppetca true --foreman-proxy-content-puppet true --enable-puppet --puppet-server true --puppet-server-foreman-ssl-ca /etc/pki/katello/puppet/puppet_client_ca.crt --puppet-server-foreman-ssl-cert /etc/pki/katello/puppet/puppet_client.crt --puppet-server-foreman-ssl-key /etc/pki/katello/puppet/puppet_client.key
2022-10-21 00:31:14 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-10-21 00:31:18 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-10-21 00:31:18 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTI
| eval severity = case(
severity="critical", "┻━┻︵ \(°□°)/ ︵ ┻━┻ ".severity,
severity="high", "(╯°□°)╯ ︵ ┻━┻ ".severity,
severity="medium", "ಠ_ಠ ".severity,
severity="low", "(っ◕‿◕)っ ".severity,
severity="info", "♥‿♥ ".severity,
true(), severity
)
@yorokobi
yorokobi / gist:04a3f503ca15bf6a5768
Last active March 21, 2016 14:37
Send data from Splunk to Syslog
_____________________
PROPS.CONF
_____________________
[iis]
TRANSFORMS-syslog = send_to_syslog
[WinEventLog:Security]
TRANSFORMS-syslog = send_to_syslog
@yorokobi
yorokobi / gist:7c63e36c6c445f6f62f1
Last active January 27, 2020 21:04
Client info from Deployment Server
| rest /services/deployment/server/clients splunk_server=local
| fields averagePhoneHomeInterval build clientName guid hostname lastPhoneHomeTime splunkVersion utsname
| rex field=hostname "(?<sourceHost>[^\.]+)\.(?<sourceDomain>.+)"
| eval sourceHost = if( isnull(sourceDomain), hostname, sourceHost )
| eval sourceHost = lower(sourceHost)
| rex field=utsname "(?<os>[^\-]+)\-(?<arch>.+)"
| eval os = case( os = "linux", "Linux", os = "windows", "Windows" )
| fields - utsname hostname
| convert timeformat="%F %T" ctime(lastPhoneHomeTime)
| table sourceHost sourceDomain os arch splunkVersion build guid clientName averagePhoneHomeInterval lastPhoneHomeTime updated
@yorokobi
yorokobi / gist:40ca9f11cf0f56764df9
Last active February 19, 2016 19:59
Splunk SHC Status from REST
| rest /services/shcluster/member/members splunk_server=local
| table label status title artifact_count status_counter.Complete advertise_restart_required last_heartbeat
| eval is_captain = "No"
| eval is_current = "No"
| eval artifacts_not_reaped = artifact_count - 'status_counter.Complete'
| eval heartbeat_diff = now() - last_heartbeat
| join type=outer label
[
| rest /services/shcluster/status splunk_server=local
| fields captain.label
@yorokobi
yorokobi / gist:b9f5c8191c04091b4a11
Created January 15, 2015 21:39
REST Query on Splunk Deployment Server to obtain recent UF connections
| rest /services/deployment/server/clients splunk_server=local |
fields averagePhoneHomeInterval build clientName guid hostname lastPhoneHomeTime updated utsname |
rex field=hostname "(?<sourceHost>[^\.]+)\.(?<sourceDomain>.+)" |
eval sourceHost = if( isnull(sourceDomain), hostname, sourceHost ) |
rex field=utsname "(?<os>[^\-]+)\-(?<arch>.+)" |
eval os = case( os = "linux", "Linux", os = "windows", "Windows" ) |
fields - utsname hostname |
lookup version2build.csv build |
table sourceHost sourceDomain os arch version build guid clientName averagePhoneHomeInterval lastPhoneHomeTime updated |
sort version sourceHost sourceDomain
@yorokobi
yorokobi / gist:39dadf570689c4f9f0d1
Last active June 19, 2019 12:15
Splunk UFs sending data to indexing tier
index=_internal source="*metrics.lo*" group=tcpin_connections earliest=-7d latest=now
| eval sourceHost = if( isnull(hostname), sourceHost, hostname )
| dedup sourceHost
| eval connectionType=case(fwdType=="uf","Universal Forwarder", fwdType=="lwf", "Lightweight Forwarder",fwdType=="full", "Heavy Forwarder", connectionType=="cooked" or connectionType=="cookedSSL","Splunk forwarder", connectionType=="raw" or connectionType=="rawSSL","Legacy Forwarder")
| eval build = if( isnull(build), "N/A", build )
| eval version = if( isnull(version), "pre 4.2", version )
| eval guid = if( isnull(guid), sourceHost, guid )
| eval os = if( isnull(os), "N/A", os )
| eval arch = if( isnull(arch), "N/A", arch )
| rex field=guid mode=sed "s/-//g"
@yorokobi
yorokobi / ui-prefs.conf
Last active March 11, 2021 10:56
ui-prefs.conf
[default]
###
### Default to "Last 15 minutes" for search
###
dispatch.earliest_time = -15m
dispatch.latest_time = now
###
### Disable RT searches in /search and /launcher
### These entries must go in etc/system/local/ui-prefs.conf