Tomcat access log analyze job completes but 0 lines imported
search cancel

Tomcat access log analyze job completes but 0 lines imported

book

Article ID: 200359

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

The Clarity Tomcat access log import/analyze job is not able to load lines from the file which contains a lot of lines with HTTP status 400.

App-access log is filled with these status 400 lines:---

###.##.##.##|[28/Jul/2020:00:00:00 +0200]|-|400|-|0|-
###.##.##.##|[28/Jul/2020:00:00:03 +0200]|-|400|-|0|-
###.##.##.##|[28/Jul/2020:00:00:05 +0200]|-|400|-|0|-
###.##.##.##|[28/Jul/2020:00:00:08 +0200]|-|400|-|0|-
###.##.##.##|[28/Jul/2020:00:00:10 +0200]|-|400|-|0|-

These lines indicate there is a problem accessing the service status via load balancer and is expected as access is restricted from Clarity


STEPS TO REPRODUCE: 

  1. Copy app-access-2020-07-28.log to create or replace existing app-access log inside log directory under CLARITY HOME directory
  2. Run Tomcat analysis job for July 28th, 2020. 


Expected result: Tomcat access log import/analyze job to be successfully able to load access log data for system analysis

Actual Result: Tomcat access log import/analyze job completes with message "imported 0 log lines for service app..." and fails to load any rows into the log tables.

Environment

Clarity 15.8, 15.8.1

Cause

This is caused by Clarity defect DE58107.

Resolution

The defect DE58107 is fixed in 15.9.1 and patch 15.8.1.4

Workaround:

Using text editor tools to remove all lines with "+0200]|-|400|-|0|-" and to re-run the Tomcat access log import/analyze job.