Hi All,
I have a requirement where I need to count the occurrence of a word i.e. “DownloadServlet” in Message field by each date.I have highlight the word below shown example. I have used delimiter as “space” to create the following fields as input Metadata Date, Mins, TPProcessor, JVMCode,MiscCode,Type and Message.
1)Output should be Date, Count of DownloadServelt(occurrences of word DownloadServelt will tell me the count)
2) If above is achieved then need to show which file is downloaded from below example i.e. file name : DATC1403223921659[]HAR_TEST_FLE.TXT.
I want to know what would be the function I should be using in Reformat and Aggregation.
Really Appreciate your help.
Thxs
Sri
The input is a text file with following content in it.
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.DownloadServlet - viewFile: Y
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.DownloadServlet - acknowledgment: null
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.DownloadServlet - namespace: ftf_ReceiveFilesPortlet_7_OO189B1A08L170I5JL351Q30K2
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.DownloadServlet - acknowledgmentsType: null
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.DownloadServlet - file name : DATC1403223921659HAR_TEST_FLE.TXT
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.BaseServlet - Get Session By JSESSIONID. JSESSIONID is 960029B30E53038C4FE87085E0E44BFC.jvm1
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.DownloadServlet - ticketId: h8m1fzOz4pLdMDOx16KMoahxD2rUpzTG
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.DownloadServlet - ftfUserId: 30032389_FERLYNO@ftf.com
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.DownloadServlet - dummyRequest: null
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.DownloadServlet - locale: en_US
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.BaseServlet - sessionFtfUserId:30032389_FERLYNO@ftf.com
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.BaseServlet - Session contains 5tickets
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.BaseServlet - Security is passed!
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.DownloadServlet - Call SMG upload
2014-03-23 03:02:03,135 [TP-Processor33] [960029B30E53038C4FE87085E0E44BFC.jvm1] [30032389_FERLYNO@ftf.com] DEBUG com.gxs.bmo.ftf.servlet.DownloadServlet - Download parameters: user ID=AHB54525, receiverId=, snrf=, tnDocId=39fea1008jlpob1s0007gmg2