Insight pack needs to be installed on the Log Analysis server in order to test the same.
Pre-requisites
- Insight Pack tooling installed (reference Install and Configure Insight Pack Tooling).
- Insight Pack project created (reference Create your First Insight Pack Project).
- Splitter code completed ( reference Create Splitter using Java).
- Annotator code completed (reference Create Annotator using Java).
- Build the Insight Pack (reference Build the Insight Pack).
- Log Analysis Server V1.3.1 or higher installed and running.
Transfer the Insight Pack
Transfer the Insight Pack (MyAppLogInsightPack_v1.0.0.0.zip) to Log Analysis server. It is present under the dist folder of the insight pack project as shown below.
Install the Insight Pack
Log into the Log Analysis server terminal as the user who installed the Log Analysis server. Install the Insight Pack using pkg_mgmt.sh as follows.
Pkg_mgmt.sh is present under <HOME>/utilities where <HOME> is the directory under which Log Analysis product is installed.
Provide execute permission to the MyAppLogInsightPack_v1.0.0.0.zip.
<xmp> [unity@cldegd60 geetha]$ /home/unity/IBM/LogAnalysis/utilities/pkg_mgmt.sh -install ./MyAppLogInsightPack_v1.0.0.0.zip Buildfile: /home/unity/IBM/LogAnalysis/utilities/pkg_mgmt.xml initializeCustomTasks: main: [packagemanager] 07/01/15 00:14:38:489 IST [main] INFO - PrerequisitesManager : CTGLC0044I : Running prerequisite checks... [packagemanager] 07/01/15 00:14:39:131 IST [main] INFO - PrerequisitesManager : CTGLC0045I : Prerequisite checks passed [packagemanager] 07/01/15 00:14:39:132 IST [main] INFO - ContentPackManager : CTGLC0022I : Install of MyAppLogInsightPack_v1.0.0.0 started... [packagemanager] 07/01/15 00:14:39:140 IST [main] INFO - ContentPack : CTGLC0002I : Installing RuleSets ... [packagemanager] 07/01/15 00:14:39:140 IST [main] INFO - ContentPack : CTGLC0003I : Successfully installed RuleSets [packagemanager] 07/01/15 00:14:39:141 IST [main] INFO - ContentPack : CTGLC0002I : Installing FileSets ... [packagemanager] 07/01/15 00:14:39:146 IST [main] INFO - FileSetArtifact : CTGLC0008I : Deploying MyAppLogInsightPack_v1.0.0.0-MyAppExtractor.jar to /home/unity/IBM/LogAnalysis/DataCollector/annotators/jars [packagemanager] 07/01/15 00:14:39:148 IST [main] INFO - FileSetArtifact : CTGLC0008I : Deploying MyAppLogInsightPack_v1.0.0.0-MyAppExtractor.jar to /home/unity/IBM/LogAnalysis/DataCollector/annotators/jars [packagemanager] 07/01/15 00:14:39:149 IST [main] INFO - FileSetArtifact : CTGLC0002I : Installing MyAppLogSplitter ... [packagemanager] 07/01/15 00:14:39:164 IST [main] INFO - FileSetArtifact : CTGLC0002I : Installing MyAppLogAnnotator ... [packagemanager] 07/01/15 00:14:39:172 IST [main] INFO - ContentPack : CTGLC0003I : Successfully installed FileSets [packagemanager] 07/01/15 00:14:39:173 IST [main] INFO - ContentPack : CTGLC0002I : Installing SourceTypes ... [packagemanager] 07/01/15 00:14:39:174 IST [main] INFO - SourceTypeArtifact : CTGLC0002I : Installing MyAppLog_ST ... [packagemanager] 07/01/15 00:14:39:242 IST [main] INFO - ContentPack : CTGLC0003I : Successfully installed SourceTypes [packagemanager] 07/01/15 00:14:39:243 IST [main] INFO - ContentPack : CTGLC0002I : Installing Collections ... [packagemanager] 07/01/15 00:14:39:244 IST [main] INFO - ContentPack : CTGLC0003I : Successfully installed Collections [packagemanager] 07/01/15 00:14:39:431 IST [main] INFO - ContentPackManager : CTGLC0023I : Install of MyAppLogInsightPack_v1.0.0.0 completed successfully BUILD SUCCESSFUL Total time: 2 seconds </xmp>
Upload the sample file
Transfer the sample log file to log analysis server. Create a datasource using Log Analysis Administrative settings UI as follows:
If all goes well, you will see a message saying datasource is successfully configured.
Now, go to the search window. Select myAppLog as datasource, last year as timefilter and * as search string. Click on search to see the search results.
Go to Grid view to see the fields created.
Congratulations! Your insight pack for MyAppLog is now working.