Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. IT Analytics Help
  3. Section IV. End user
  4. Work with the SQL template designer
  5. Sample SQL Queries
  6. Example of a Query of Failed Backup Jobs

Example of a Query of Failed Backup Jobs

The following example results in a table of failed jobs.

  1. In the SQL Template Designer, check both Date Rangeand Host Groups and Client Scope.

  2. In the Query window, enter the following select statement and click Validate Query:

    SELECT apt_v_job.job_id,apt_v_job.client_id, apt_v_job.client_name,
    apt_v_job.server_id, apt_v_job.server_name,
    apt_v_job.start_date,apt_v_job.vendor_state_name,
    apt_v_job.vendor_status_name
    FROM apt_v_job
    WHERE apt_v_job.summary_status = 2 --Failed jobs
      AND apt_v_job.start_date > ${startDate}
      AND apt_v_job.start_date < ${endDate}
      AND apt_v_job.client_id IN (${hosts})
    
  3. In the Formatting window, select the fields to be displayed. For this example, it makes sense to Select All and display the report as a Table.

  4. Click Next, enter a report name and select a Menu Group. Then, click Finish.

  5. When you run this report, specify either a time period or start and end dates. You also can modify the scope to generate the report for a specific host group. The output will look something like this:

Feedback

Was this page helpful?
Previous

Considerations for Attributes Used in SQL Template Designer Queries

Next

Example of the SQL Custom Join Feature in a SQL Template

Feedback

Was this page helpful?