Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to parse log on some ERRORs #7

Closed
anonymosh opened this issue Oct 15, 2020 · 0 comments
Closed

Failing to parse log on some ERRORs #7

anonymosh opened this issue Oct 15, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@anonymosh
Copy link

Describe the bug
The script fails with the following description on the console:

ERROR - Failed to handle correlatorLog.log line 161199: 2020-10-14 16:17:36,895 WARN  [kafka-producer-network-thread | octo-event-producer-4ccf0ce4-e748-48c6-a06b-ea808c026ffc] - : [Producer clientId=octo-event-producer-4ccf0ce4-e748-48c6-a06b-ea808c026ffc] Got error produce response with correlation id 19909 on topic-partition message.event.crash-score-21, retrying (9 attempts left). Error: NETWORK_EXCEPTION -
Traceback (most recent call last):
  File "log_analyzer.py", line 539, in processFile
    if self.handleLine(file=file, line=logline, previousLine=previousLine) != LogAnalyzer.DONT_UPDATE_PREVIOUS_LINE:
  File "log_analyzer.py", line 628, in handleLine
    self.handleWarnOrError(file=file, isError=False, line=line)
  File "log_analyzer.py", line 1073, in handleWarnOrError
    if tracker['first'].getDateTime() > line.getDateTime():
TypeError: '>' not supported between instances of 'NoneType' and 'NoneType'
Traceback (most recent call last):
  File "log_analyzer.py", line 2391, in <module>
    sys.exit(LogAnalyzerTool().main(sys.argv[1:]))
  File "log_analyzer.py", line 2335, in main
    manager.processFiles(sorted(list(logpaths)))
  File "log_analyzer.py", line 473, in processFiles
    self.processFile(file=file)
  File "log_analyzer.py", line 539, in processFile
    if self.handleLine(file=file, line=logline, previousLine=previousLine) != LogAnalyzer.DONT_UPDATE_PREVIOUS_LINE:
  File "log_analyzer.py", line 628, in handleLine
    self.handleWarnOrError(file=file, isError=False, line=line)
  File "log_analyzer.py", line 1073, in handleWarnOrError
    if tracker['first'].getDateTime() > line.getDateTime():
TypeError: '>' not supported between instances of 'NoneType' and 'NoneType'

Expected behavior
Log parses correctly

Affected version(s)

  • Log analyzer version: 3.7/2020-06-09
  • Apama version(s): 10.5.3 Community
  • Python version(s): 3.7.4 (Apama Built-In)
  • Operating System(s): Windows 10
@anonymosh anonymosh added the bug Something isn't working label Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant