As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I have been asked to create a WebFOCUS report against an application log file. I doubt that this is possible.
I think I would need to set up a process to create and update a table using the contents of the log file. Then configure a synonym for the new table, etc.
Any comments or suggestions about the feasibility of this approach will be appreciated.
ThanksThis message has been edited. Last edited by: <Emily McAllister>,
Do you know what the application log file looks like? If you can identify each column in the log file, you can create a synonym (master file) for it and report off of it. Unfortunately, most log files aren't really well structured so that's what makes the process a lot more labor intensive.
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
The simplest way to read a log file is to use a master file that has a single field in it to read each row, then you can break it up with DEFINES, etc.
If it is structured, then a more complex master can be created.
e.g.
EX -LINES * EDAPUT MASTER,LOG,CV,FILE
FILENAME=LOG, SUFFIX=FIX,$
SEGNAME=LOG, $
FIELD=LINE ,ALIAS= ,A255 ,A255 ,$
EDAPUT*
EX -LINES * EDAPUT FOCTEMP,LOG,CV,FILE
The Quick Brown Focus Jumped Over The Lazy SQL
EDAPUT*
FILEDEF LOG DISK log.ftm
-RUN
TABLE FILE LOG
PRINT *
END
I placed the ErrorLogTest log file in the baseapp folder as ErrorLogTest.ftm
I created a procedure:
FILEDEF LogTest DISK baseapp/ErrorLogTest.ftm -RUN TABLE FILE LogTest PRINT * END
I can run the procedure and it shows every line in the ErrorLogTest.ftm file. So now I need to find a way to filter ErrorLogTest.ftm so that when my procedure runs it only shows the errors that I am looking for.
If you can load the file into either a CSV or Excel file, you can then add it to WF as a synonym using the new / upload feature In the Master File folder.
WF 7.6.11 Oracle WebSphere Windows NT-5.2 x86 32bit
I haven't tested it in an FTM but you could try setting a FILTER in the master file that tests if LINE has the word error in it. FILTER ERR_TEST=LINE CONTAINS 'Error'; $
then have a WHERE ERR_TEST EQ 1;
in your focexec.
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015