Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
I want to find out how many times a mashup used. So for that I am developing a mashup that can access localhost access log from tomcat folder in server. So I want to know how to acess this log in mashup.
Solved! Go to Solution.
You can hire PTC or one of their partners to create such an extension, but it's not that hard to do yourself. Especially method 1) I suggested above could be done in little time. See https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Access_Log_Valve
ThingWorx can't arbitrarily access folders in the file system. OOTB it has access to its own folders, and the folders of the File Repositories.
There are two (safe) ways to access this log from ThingWorx:
1) Configure tomcat to put this log into a folder of a ThingWorx File Repository
2) Create a java extension which reads the file from the tomcat folder. Extensions can access any folder.
Hi,
Thanks for your responce, just wanted to know localhost access log is also created in thingworx composer?
No, it's created by Tomcat, not by ThingWorx.
PTC provide this type of functionality extension?
You can hire PTC or one of their partners to create such an extension, but it's not that hard to do yourself. Especially method 1) I suggested above could be done in little time. See https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Access_Log_Valve
Hi,
Thanks for your support. I have created this extension.