Skip to main content
Solved

Is there a way to export specific logging details for a workspace/Service App? For example, how many times was this specific workspace ran in the last 30 days? How many features in the request? ETC


kbraun77
Contributor
Forum|alt.badge.img+9

Update:

I was able to use this link to get my reporting workbench started:

https://community.safe.com/s/article/Monitoring-FME-Server-Job-Activity-using-the-REST-API

Best answer by keziaatsafe

Hi @kbraun77​ ,

 

That is a great article to start with! With the FME Server REST API, you can get statistics on specific workspaces or Server apps. This article, Tips for Working With the FME Server REST API in FME Workbench showcases a Weekly Job Metrics Dashboard, but you can work the logic for a 30 day time line and write out to a different format if you're not looking for an HTML dashboard output.

 

You could build a workbench similar to the other workspaces in the Dashboards repository that start by reading in the CSV file that the JobHistoryStatisticsGathering.fmw workspace outputs ($(FME_SHAREDRESOURCE_DASHBOARD)\\temp\\JobHistorySnapshot_*.csv). You can have two bookmarks, one to get Start Date and End Data for Report, and a second bookmark with transformers to calculate count of a specific Workspace. Finally, you can write out to an HTML file if or any other format. In this example, I'm reading in a simpler CSV file and calculating the amount of times an app was triggered by a user.

DashboardExampleThen, you can create an Automation with a schedule trigger to run the JobHistoryStatisticsGathering.fmw workspace. From the success port of the JobHistoryStatisticsGathering.fmw workspace, you can attach another Run a Workspace action to run the workspace you created for the amount of times a workspace was ran (Failures By Workspace.fmw as an example).

 

DashboardAutomation 

Hope this helps!

 

 

View original
Did this help you find an answer to your question?

2 replies

keziaatsafe
Safer
Forum|alt.badge.img+7
  • Safer
  • Best Answer
  • April 11, 2022

Hi @kbraun77​ ,

 

That is a great article to start with! With the FME Server REST API, you can get statistics on specific workspaces or Server apps. This article, Tips for Working With the FME Server REST API in FME Workbench showcases a Weekly Job Metrics Dashboard, but you can work the logic for a 30 day time line and write out to a different format if you're not looking for an HTML dashboard output.

 

You could build a workbench similar to the other workspaces in the Dashboards repository that start by reading in the CSV file that the JobHistoryStatisticsGathering.fmw workspace outputs ($(FME_SHAREDRESOURCE_DASHBOARD)\\temp\\JobHistorySnapshot_*.csv). You can have two bookmarks, one to get Start Date and End Data for Report, and a second bookmark with transformers to calculate count of a specific Workspace. Finally, you can write out to an HTML file if or any other format. In this example, I'm reading in a simpler CSV file and calculating the amount of times an app was triggered by a user.

DashboardExampleThen, you can create an Automation with a schedule trigger to run the JobHistoryStatisticsGathering.fmw workspace. From the success port of the JobHistoryStatisticsGathering.fmw workspace, you can attach another Run a Workspace action to run the workspace you created for the amount of times a workspace was ran (Failures By Workspace.fmw as an example).

 

DashboardAutomation 

Hope this helps!

 

 


kbraun77
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • May 4, 2022
keziaatsafe wrote:

Hi @kbraun77​ ,

 

That is a great article to start with! With the FME Server REST API, you can get statistics on specific workspaces or Server apps. This article, Tips for Working With the FME Server REST API in FME Workbench showcases a Weekly Job Metrics Dashboard, but you can work the logic for a 30 day time line and write out to a different format if you're not looking for an HTML dashboard output.

 

You could build a workbench similar to the other workspaces in the Dashboards repository that start by reading in the CSV file that the JobHistoryStatisticsGathering.fmw workspace outputs ($(FME_SHAREDRESOURCE_DASHBOARD)\\temp\\JobHistorySnapshot_*.csv). You can have two bookmarks, one to get Start Date and End Data for Report, and a second bookmark with transformers to calculate count of a specific Workspace. Finally, you can write out to an HTML file if or any other format. In this example, I'm reading in a simpler CSV file and calculating the amount of times an app was triggered by a user.

DashboardExampleThen, you can create an Automation with a schedule trigger to run the JobHistoryStatisticsGathering.fmw workspace. From the success port of the JobHistoryStatisticsGathering.fmw workspace, you can attach another Run a Workspace action to run the workspace you created for the amount of times a workspace was ran (Failures By Workspace.fmw as an example).

 

DashboardAutomation 

Hope this helps!

 

 

Thank you, this is great!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings