Skip to content

Instantly share code, notes, and snippets.

@yorokobi
Created January 15, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yorokobi/b9f5c8191c04091b4a11 to your computer and use it in GitHub Desktop.
Save yorokobi/b9f5c8191c04091b4a11 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment