-
Notifications
You must be signed in to change notification settings - Fork 26
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
JPERF-838: Add Splunkforwarder.jsonifyLog4j method for Log4j1 and Log4j2 #119
JPERF-838: Add Splunkforwarder.jsonifyLog4j method for Log4j1 and Log4j2 #119
Conversation
src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/splunk/Log4jJsonifierTest.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/splunk/Log4jJsonifier.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/splunk/SplunkForwarder.kt
Outdated
Show resolved
Hide resolved
src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/splunk/Log4jJsonifierTest.kt
Outdated
Show resolved
Hide resolved
aa0b017
to
a4477a8
Compare
src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/splunk/SplunkForwarder.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/splunk/SplunkForwarder.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/JiraNodeConfig.kt
Outdated
Show resolved
Hide resolved
private val log4jConfigFileName = log4j2ConfigFileName | ||
|
||
override fun jsonifyLog4j(sshConnection: SshConnection, log4jPropertiesPath: String) { | ||
val log4j2ConfigPath = Paths.get(log4jPropertiesPath).resolveSibling(log4jConfigFileName).toString() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolveSibling
nice!
dc0d4e5
to
18281ea
Compare
src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/Sed.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/atlassian/performance/tools/infrastructure/splunk/Log4jJsonifier.kt
Outdated
Show resolved
Hide resolved
18281ea
to
4a22d7a
Compare
…dle log4j2 config files.
4a22d7a
to
6daf5cf
Compare
import com.atlassian.performance.tools.ssh.api.SshConnection | ||
import java.nio.file.Paths | ||
|
||
class Log4j2SplunkForwarder(log4j2ConfigFileName: String, splunkForwarder: SplunkForwarder) : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new API and it's a good thing. It's a way to offer the fix to anyone, who's not going through the JiraNodeConfig.Builder
. @atlassian/jpt, this will be a minor release.
FYI I wasn't convinced that this change wasn't breaking module's API so I checked with japicmp and the report confirmed that minor release if correct ✅ Can't attach the report, because github rejects HTML attachements + chrome for some reason crashes when taking full page screenshot ¯\_(ツ)_/¯ |
Jsonify both log4j 1 and log4j 2 config files