THWACK logo
THWACK
  • Sign In
  • Search
  • Community
    Community

    Find all you need to begin your THWACK journey, including documentation, missions, blogs, community groups, events, and media.

    Command Central
    • Getting Started
    MVP Program
    • MVP Program
    Monthly Mission
    • Network Uptime, Summer Downtime
    Blogs
    • Community Announcements
    • Product Blog
    Groups
    • DevOps Discourse
    • Data Driven
    • See All Groups
    Events
    • SolarWinds User Group
    • THWACKcamp
      • ↪ 2024: On Demand
    • Bracket Battle
    • Global Events
    Media Vault
    • Movies & Mainframes
    • TechPod
    • THWACK Tech Tips
    • THWACK Livecast
    • SolarWinds Lab Archive
    • THWACKcamp Archive
    • See All Media
  • Products
    Products

    Find the best place to learn and ask questions about your SolarWinds products.

    Observability
    • Observability Solutions
    • SolarWinds Observability SaaS
    • SolarWinds Observability Self-Hosted
    • SolarWinds Platform
    Network Management
    • Network Performance Monitoring
    • NetFlow Traffic Analyzer
    • Network Configuration Manager
    • IP Address Manager
    • User Device Tracker
    • VoIP & Network Quality Manager
    • Log Analyzer
    • Engineer's Toolset
    • Network Topology Mapper
    • Kiwi CatTools
    • Kiwi Syslog Server
    • ipMonitor
    Application Management
    • AppOptics
    • Loggly
    • Papertrail
    • Pingdom
    • DevOps
    IT Security
    • Access Rights Manager
    • Identity Monitor
    • Security Event Manager
    • Patch Manager
    • Serv-U FTP & MFT
    IT Service Management
    • SolarWinds Service Desk
    • Web Help Desk
    • DameWare Remote Support
    • DameWare Remote Everywhere
    • DameWare Mini Remote Control
    System Management
    • Server & Application Monitor
    • Virtualization Manager
    • Storage Resource Monitor
    • Server Configuration Monitor
    • SolarWinds Backup
    • Web Performance Monitor
    Database Management
    • Database Performance Analyzer
    • SQL Sentry
    • Database Performance Monitor
    • Database Mapper
    • Task Factory
  • Content Exchange
    Content Exchange

    Find downloadable files and templates other users have built and found useful to share with others.

    SolarWinds Platform
    • Alerts
    • Custom HTML
    • Custom Queries
    • Modern Dashboards
    • Reports
    • Scripts
    Server & Application Monitor
    • API Pollers
    • Application Monitor Templates
    Database Performance Analyzer
    • Custom Alerts
    • Custom Metrics
    • Custom Queries
    Server Configuration Monitor
    • Policies
    • Profiles
    Network Performance Monitor
    • Device Pollers
    • Universal Device Pollers
    Network Configuration Manager
    • Config Change Scripts
    • Device Templates
    • Firmware Upgrade Templates
    • Policy Documents
    SQL Sentry
    • Advisory Conditions
    Web Help Desk
    • Style Sheets
  • Resources
    SolarWinds Customer Portal Customer Portal

    Create individual user accounts for your team, manage your licenses, download your SolarWinds software, create and track support tickets, and more.

    SolarWinds Academy Academy

    A one-stop-shop for world-class training for SolarWinds products through on-demand videos, and instructor-led classes. All SolarWinds Academy content is included with every software purchase.

    SolarWinds Customer Success Support

    Get help when you need it from a world-class support team, available to assist with technical product issues 24 hours a day, seven days a week, 365 days a year.

    SolarWinds Partner Portal Partner Portal

    Accelerate SolarWinds Partners’ ability to drive digital and IT transformation for customers with powerful tools, resources, and increased profit potential.

  • Free Tools & Trials
  • Store
The SolarWinds Platform
  • Content Exchange
The SolarWinds Platform
Custom HTML Orion Custom SWQL Query Search & Reference Table
  • Tags
  • More
  • Cancel
Options
  • View all
  • Previous
  • Next
  • View slideshow
  • More
  • Cancel
fileName
Sign in to Download

Orion Custom SWQL Query Search & Reference Table

This is a simple table (using Google Charts) which lists all custom query widgets, as well as their contents. This table can be used to reference all of the customer query widgets and SWQL code currently implemented throughout an environment. I typically just use a standard custom query widget to display all my SWQL, instead of this fancy table, but I very much prefer the cleaner layout of the table.

To use this, you will need to download this HTML/JavaScript file, add a "Custom HTML" widget to a summary view, and then copy/paste the contents into the custom HTML widget. The queries within this JS do not reference any custom properties, so it should just work. If not, make sure your system can communicate with where the Google Charts files live.

Once loaded into a custom HTML widget, you should see something similar to the screenshot below. This is the list of custom query resources in your environment.

Clicking on any of the results listed in the table to the left will populate the contents of that resource, as seen below. If the resource has the search feature enabled, then queries for both the "SWQL" and "SearchSWQL" parts will be listed.

As always, if you get clever about how you title (and subtitle) the various custom query widgets, or add specific/coded comments within the queries themselves, you can create better filters. This can allow you to easily group similar purposed queries together, such as "Group", or "Node Detail", queries. As an example, looking at the 2 queries below, we could add to the filter within the table and only return results with ${ID} or ${NodeID}, returning only the results which would specifically be used on their respective view types. (Again, a good title/subtitle/commenting scheme can also make it very easy to categorize your queries too.)

Once you find something you like, need, or want to use, you can simply copy it from here.

If you're in a pinch, and you have a couple helpful links handy, you can paste your query in and work on it directly within Orion itself. (/orion/Admin/swis.aspx)

A long while back, I had posted how to get this table up and running, though for a slightly different purpose. It was just a basic table which helped to manage views a little more cleanly. The results displayed in that table, however, did not require any particular formatting. Now, for this new table, I kept running into issues with the SWQL formatting when displaying the queries. I could not figure it out, and almost decided I wasn't even going to post it. Before I lost anymore of the little mind I have left, I asked my co-worked, mblackburn, who is an amazing fixer and maker better-er of things, for help. I showed him what I had, and how messy it looked, and Matt had fixed it shortly after I had asked him for help. Matt is also responsible for many of the other JavaScript/Google Charts tools I have posted in the past, and he's also responsible for getting this table to retain the formatting for the queries. Thank you, Matt!

 

 

While I cannot remember where all the various pieces of this query originated, I do know it was from folks in this community, so I'll just credit THWACK. (Which is basically what I'll need to say for anything and everything I post...)

 

 

Thank you,

-Will

  • shakkalakka
  • Orion 2020.2.6
  • meow
  • Google Charts
  • JavaScript
  • Network Performance Monitor (NPM)
wluther
wluther
  • 10 Dec 2021
  • 170 Downloads
  • Share
  • More
  • Cancel
  • Sign in to reply

SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 200,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.

SolarWinds Customer Success Center Certification SolarWinds Lab Link Customer Portal
About THWACK SolarWinds Blog Federal & Government Edit Settings Free Tools & Trials
Legal Documents Terms of Use Privacy California Privacy Rights Security Information
©2021 SolarWinds Worldwide, LLC. All Rights Reserved.