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

AMBARI-24386 - [Log Search] Input config validator unable to parse any log entry #1923

Merged

Conversation

kasakrisz
Copy link
Contributor

What changes were proposed in this pull request?

On LogSearch UI on the "Configuration Editor" page the input config validator could not parse any log entries because of an NPE. The LogEntryParseTester.parse method creates its own instance of OutputManagerImpl which depends on LogFeederProps. LogFeederProps was not set.

How was this patch tested?

Manually:

  • Deploy a cluster including zookeeper, infra-solr and logsearch.

  • Login to Logsearch portal

  • Select "Configuration Editor" from the right upper corner menu

  • Select an input config from "All Configuration" (ambari)

  • Enter a "Component Name" on the "Validator" section (ambari_agent)

  • Enter a log entry to the "Sample Data" text area

    INFO 2018-07-31 06:14:06,550 security.py:67 - SSL connection established. Two-way SSL authentication is turned off on the server.

  • Click "Test"

  • The UI indicates that the "Configuration is valid."

@asfgit
Copy link

asfgit commented Jul 31, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3377/
Test PASSed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants