How to see the audit history of tickets.

utkarsha_s
Kilo Expert

Hi guys,

Please help me knowing how to see the audit history of tickets say all the GREQs. I want to know if I have to run a report or which table should I refer to to fetch the audit history of all the tickets as I cannot go on each ticket separately to see the audit logs.

Thanks,

Utkarsha Saxena

1 ACCEPTED SOLUTION

Rajesh Mushke
Mega Sage
Mega Sage

i forgot tell you,



System tables are, by default, restricted from the Reporting module.


The reason for this is because Sys audit is typically the largest table in any instance. It is not unusual for the audit table, in even a mid-sized instance, to be several gigabytes. At a large installation, this table can be 50GB or more.


When we access the Sys audit table programmatically, we know what our query pattern is going to look like, so we have added appropriate data indexes to match our queries. This means that when you bring up, for example, the history on an incident, the database can use an index to efficiently pull back the few dozen rows it needs for that query.


With freeform reporting, however, we cannot predict what your query pattern is going to look like. Maybe you want to group by fieldname, or sort by oldvalue. So it is possible your queries are not going to be indexed queries. The net result is you will be asking the database to table scan a multiple GB file, which is bad for these reasons:


  • It is slow, so your report will take an unacceptably long time
  • While the database is grinding the disk to scan your table, your instance will slow down or even become unavailable because other queries cannot get the resources they need.

If you must report on a system table, you can add it to the glide.ui.permitted_tables property. Navigate to System Properties > UI Properties and locate the property labeled List of system tables (beginning with "sys_", comma separated), that are reportable. By default, system tables are not reportable. Proceed with caution.




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

View solution in original post

7 REPLIES 7

Shishir Srivast
Mega Sage

You can get the details from sys_audit table based upon the ticket sys_id.


Rajesh Mushke
Mega Sage
Mega Sage

Hi Utkarsha,



Here's a little trick,



Here is an example, hope this will helps you,



Enter the table name in the navigation filter...



find_real_file.png



When the list comes up, pick a column, right click, and create   bar chart report.



find_real_file.png





Generating Reports - ServiceNow Wiki




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

HI Utkarsha,



Please close this chain.



If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.



If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View.






Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

One error is there, when I am trying to pull out a report from create report from that table, that table itself is not visible in the list. please tell me with screenshots where that table is as I am not able to pull out a report.