Skip to content

Commit

Permalink
JPERF-838: Add Splunkforwarder.jsonifyLog4j method for Log4j1 and Log4j2
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-nowak-atl committed Oct 18, 2022
1 parent 7584e0d commit aa0b017
Show file tree
Hide file tree
Showing 21 changed files with 312 additions and 111 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.gradle
build
.idea
.idea
.DS_Store
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ Dropping a requirement of a major version of a dependency is a new contract.
## [Unreleased]
[Unreleased]: https://github.com/atlassian/infrastructure/compare/release-4.19.3...master

### Added
- Added `jsonifyLog4j(sshConnection: SshConnection, log4jPropertiesPath: String, log4j2ConfigPath: String)` to `SplunkForwarder` to enable jsonifying log4j2 configurations. [JPERF-838]

## [4.19.3] - 2022-06-23
[4.19.3]: https://github.com/atlassian/infrastructure/compare/release-4.19.2...release-4.19.3

Expand Down
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ configurations.all {
"org.jetbrains:annotations" -> useVersion("15.0")
"com.google.code.findbugs:jsr305" -> useVersion("3.0.2")
"org.apache.commons:commons-compress" -> useVersion("1.9")
"net.bytebuddy:byte-buddy" -> useVersion("1.12.14")
"org.seleniumhq.selenium:selenium-api" -> useVersion("3.11.0")
"org.seleniumhq.selenium:selenium-support" -> useVersion("3.11.0")
"org.seleniumhq.selenium:selenium-chrome-driver" -> useVersion("3.11.0")
}
when (requested.group) {
"org.jetbrains.kotlin" -> useVersion(kotlinVersion)
Expand Down Expand Up @@ -63,6 +67,7 @@ dependencies {

webdriver().forEach { testCompile(it) }
testCompile("junit:junit:4.12")
testCompile("org.mockito:mockito-core:[3.0.0, 4.8.0]")
testCompile("com.atlassian.performance.tools:jira-software-actions:[1.0.0,2.0.0)")
testCompile("org.hamcrest:hamcrest-library:1.3")
testCompile("org.assertj:assertj-core:3.11.1")
Expand All @@ -72,6 +77,7 @@ dependencies {
}

fun webdriver(): List<String> = listOf(
"selenium-api",
"selenium-support",
"selenium-chrome-driver"
).map { module ->
Expand Down
18 changes: 9 additions & 9 deletions gradle/dependency-locks/apiDependenciesMetadata.lockfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
com.atlassian.performance.tools:concurrency:1.1.0
com.atlassian.data:random-data:1.4.3
com.atlassian.performance.tools:concurrency:1.1.2
com.atlassian.performance.tools:io:1.2.0
com.atlassian.performance.tools:jira-actions:3.9.0
com.atlassian.performance.tools:jira-software-actions:1.3.2
com.atlassian.performance.tools:jvm-tasks:1.2.0
com.atlassian.performance.tools:ssh:2.3.0
com.atlassian.performance.tools:virtual-users:3.10.0
com.atlassian.performance.tools:jira-actions:3.17.2
com.atlassian.performance.tools:jira-software-actions:1.3.5
com.atlassian.performance.tools:jvm-tasks:1.2.3
com.atlassian.performance.tools:ssh:2.4.3
com.atlassian.performance.tools:virtual-users:3.13.2
com.atlassian.performance:selenium-js:1.0.1
com.github.stephenc.jcip:jcip-annotations:1.0-1
com.google.code.findbugs:jsr305:3.0.2
com.google.code.gson:gson:2.8.2
Expand All @@ -24,7 +26,7 @@ commons-codec:commons-codec:1.10
commons-io:commons-io:2.5
commons-logging:commons-logging:1.2
io.github.bonigarcia:webdrivermanager:1.7.1
net.bytebuddy:byte-buddy:1.7.9
net.bytebuddy:byte-buddy:1.12.14
net.i2p.crypto:eddsa:0.2.0
org.apache.commons:commons-compress:1.9
org.apache.commons:commons-csv:1.3
Expand All @@ -45,8 +47,6 @@ org.glassfish:javax.json:1.1
org.jetbrains.kotlin:kotlin-stdlib-common:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.70
org.jetbrains.kotlin:kotlin-stdlib:1.2.70
org.jetbrains:annotations:15.0
org.jsoup:jsoup:1.10.2
Expand Down
18 changes: 13 additions & 5 deletions gradle/dependency-locks/compileClasspath.lockfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
com.atlassian.performance.tools:concurrency:1.1.0
com.atlassian.performance.tools:concurrency:1.1.2
com.atlassian.performance.tools:io:1.2.0
com.atlassian.performance.tools:jira-actions:3.9.0
com.atlassian.performance.tools:jvm-tasks:1.2.0
com.atlassian.performance.tools:ssh:2.3.0
com.atlassian.performance.tools:virtual-users:3.10.0
com.atlassian.performance.tools:jira-actions:3.17.2
com.atlassian.performance.tools:jvm-tasks:1.2.3
com.atlassian.performance.tools:ssh:2.4.3
com.atlassian.performance.tools:virtual-users:3.13.2
com.atlassian.performance:selenium-js:1.0.1
com.github.stephenc.jcip:jcip-annotations:1.0-1
com.google.code.findbugs:jsr305:3.0.2
com.google.code.gson:gson:2.8.2
com.google.errorprone:error_prone_annotations:2.1.3
com.google.guava:guava:23.6-jre
com.google.j2objc:j2objc-annotations:1.1
com.hierynomus:sshj:0.23.0
com.jcraft:jzlib:1.1.3
com.squareup.okhttp3:okhttp:3.9.1
com.squareup.okio:okio:1.13.0
commons-codec:commons-codec:1.10
commons-io:commons-io:2.5
commons-logging:commons-logging:1.2
javax.inject:javax.inject:1
net.bytebuddy:byte-buddy:1.12.14
net.i2p.crypto:eddsa:0.2.0
org.apache.commons:commons-exec:1.3
org.apache.commons:commons-lang3:3.5
org.apache.httpcomponents:httpclient:4.5.5
org.apache.httpcomponents:httpcore:4.4.9
Expand Down Expand Up @@ -63,6 +69,8 @@ org.jetbrains.kotlin:kotlin-stdlib:1.2.70
org.jetbrains:annotations:15.0
org.jsoup:jsoup:1.10.2
org.seleniumhq.selenium:selenium-api:3.11.0
org.seleniumhq.selenium:selenium-remote-driver:3.11.0
org.seleniumhq.selenium:selenium-support:3.11.0
org.slf4j:slf4j-api:1.8.0-alpha2
org.sonatype.plexus:plexus-cipher:1.4
org.sonatype.plexus:plexus-sec-dispatcher:1.4
18 changes: 9 additions & 9 deletions gradle/dependency-locks/default.lockfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
com.atlassian.performance.tools:concurrency:1.1.0
com.atlassian.data:random-data:1.4.3
com.atlassian.performance.tools:concurrency:1.1.2
com.atlassian.performance.tools:io:1.2.0
com.atlassian.performance.tools:jira-actions:3.9.0
com.atlassian.performance.tools:jira-software-actions:1.3.2
com.atlassian.performance.tools:jvm-tasks:1.2.0
com.atlassian.performance.tools:ssh:2.3.0
com.atlassian.performance.tools:virtual-users:3.10.0
com.atlassian.performance.tools:jira-actions:3.17.2
com.atlassian.performance.tools:jira-software-actions:1.3.5
com.atlassian.performance.tools:jvm-tasks:1.2.3
com.atlassian.performance.tools:ssh:2.4.3
com.atlassian.performance.tools:virtual-users:3.13.2
com.atlassian.performance:selenium-js:1.0.1
com.github.stephenc.jcip:jcip-annotations:1.0-1
com.google.code.findbugs:jsr305:3.0.2
com.google.code.gson:gson:2.8.2
Expand All @@ -25,7 +27,7 @@ commons-io:commons-io:2.5
commons-logging:commons-logging:1.2
io.github.bonigarcia:webdrivermanager:1.7.1
javax.inject:javax.inject:1
net.bytebuddy:byte-buddy:1.7.9
net.bytebuddy:byte-buddy:1.12.14
net.i2p.crypto:eddsa:0.2.0
org.apache.commons:commons-compress:1.9
org.apache.commons:commons-csv:1.3
Expand Down Expand Up @@ -72,8 +74,6 @@ org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi:3.1.3
org.jetbrains.kotlin:kotlin-stdlib-common:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.70
org.jetbrains.kotlin:kotlin-stdlib:1.2.70
org.jetbrains:annotations:15.0
org.jsoup:jsoup:1.10.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
com.atlassian.performance.tools:concurrency:1.1.0
com.atlassian.data:random-data:1.4.3
com.atlassian.performance.tools:concurrency:1.1.2
com.atlassian.performance.tools:io:1.2.0
com.atlassian.performance.tools:jira-actions:3.9.0
com.atlassian.performance.tools:jira-software-actions:1.3.2
com.atlassian.performance.tools:jvm-tasks:1.2.0
com.atlassian.performance.tools:ssh:2.3.0
com.atlassian.performance.tools:virtual-users:3.10.0
com.atlassian.performance.tools:jira-actions:3.17.2
com.atlassian.performance.tools:jira-software-actions:1.3.5
com.atlassian.performance.tools:jvm-tasks:1.2.3
com.atlassian.performance.tools:ssh:2.4.3
com.atlassian.performance.tools:virtual-users:3.13.2
com.atlassian.performance:selenium-js:1.0.1
com.github.stephenc.jcip:jcip-annotations:1.0-1
com.google.code.findbugs:jsr305:3.0.2
com.google.code.gson:gson:2.8.2
Expand All @@ -25,7 +27,7 @@ commons-io:commons-io:2.5
commons-logging:commons-logging:1.2
io.github.bonigarcia:webdrivermanager:1.7.1
javax.inject:javax.inject:1
net.bytebuddy:byte-buddy:1.7.9
net.bytebuddy:byte-buddy:1.12.14
net.i2p.crypto:eddsa:0.2.0
org.apache.commons:commons-compress:1.9
org.apache.commons:commons-csv:1.3
Expand Down Expand Up @@ -72,8 +74,6 @@ org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi:3.1.3
org.jetbrains.kotlin:kotlin-stdlib-common:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.70
org.jetbrains.kotlin:kotlin-stdlib:1.2.70
org.jetbrains:annotations:15.0
org.jsoup:jsoup:1.10.2
Expand Down
18 changes: 9 additions & 9 deletions gradle/dependency-locks/runtimeClasspath.lockfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
com.atlassian.performance.tools:concurrency:1.1.0
com.atlassian.data:random-data:1.4.3
com.atlassian.performance.tools:concurrency:1.1.2
com.atlassian.performance.tools:io:1.2.0
com.atlassian.performance.tools:jira-actions:3.9.0
com.atlassian.performance.tools:jira-software-actions:1.3.2
com.atlassian.performance.tools:jvm-tasks:1.2.0
com.atlassian.performance.tools:ssh:2.3.0
com.atlassian.performance.tools:virtual-users:3.10.0
com.atlassian.performance.tools:jira-actions:3.17.2
com.atlassian.performance.tools:jira-software-actions:1.3.5
com.atlassian.performance.tools:jvm-tasks:1.2.3
com.atlassian.performance.tools:ssh:2.4.3
com.atlassian.performance.tools:virtual-users:3.13.2
com.atlassian.performance:selenium-js:1.0.1
com.github.stephenc.jcip:jcip-annotations:1.0-1
com.google.code.findbugs:jsr305:3.0.2
com.google.code.gson:gson:2.8.2
Expand All @@ -25,7 +27,7 @@ commons-io:commons-io:2.5
commons-logging:commons-logging:1.2
io.github.bonigarcia:webdrivermanager:1.7.1
javax.inject:javax.inject:1
net.bytebuddy:byte-buddy:1.7.9
net.bytebuddy:byte-buddy:1.12.14
net.i2p.crypto:eddsa:0.2.0
org.apache.commons:commons-compress:1.9
org.apache.commons:commons-csv:1.3
Expand Down Expand Up @@ -72,8 +74,6 @@ org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi:3.1.3
org.jetbrains.kotlin:kotlin-stdlib-common:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.70
org.jetbrains.kotlin:kotlin-stdlib:1.2.70
org.jetbrains:annotations:15.0
org.jsoup:jsoup:1.10.2
Expand Down
16 changes: 9 additions & 7 deletions gradle/dependency-locks/testApiDependenciesMetadata.lockfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
com.atlassian.performance.tools:concurrency:1.1.0
com.atlassian.performance.tools:jira-actions:3.9.0
com.atlassian.performance.tools:jira-software-actions:1.3.2
com.atlassian.performance.tools:jvm-tasks:1.2.0
com.atlassian.performance.tools:concurrency:1.1.2
com.atlassian.performance.tools:jira-actions:3.17.2
com.atlassian.performance.tools:jira-software-actions:1.3.5
com.atlassian.performance.tools:jvm-tasks:1.2.3
com.atlassian.performance.tools:ssh-ubuntu:0.2.0
com.atlassian.performance:selenium-js:1.0.1
com.github.stephenc.jcip:jcip-annotations:1.0-1
com.google.code.findbugs:jsr305:3.0.2
com.google.code.gson:gson:2.8.2
Expand All @@ -22,7 +23,8 @@ javax.activation:javax.activation-api:1.2.0
javax.annotation:javax.annotation-api:1.3.2
javax.xml.bind:jaxb-api:2.3.1
junit:junit:4.12
net.bytebuddy:byte-buddy:1.7.9
net.bytebuddy:byte-buddy-agent:1.12.14
net.bytebuddy:byte-buddy:1.12.14
net.java.dev.jna:jna-platform:5.2.0
net.java.dev.jna:jna:5.2.0
org.apache.commons:commons-compress:1.9
Expand All @@ -43,10 +45,10 @@ org.hamcrest:hamcrest-library:1.3
org.jetbrains.kotlin:kotlin-stdlib-common:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.70
org.jetbrains.kotlin:kotlin-stdlib:1.2.70
org.jetbrains:annotations:15.0
org.mockito:mockito-core:4.8.0
org.objenesis:objenesis:3.2
org.rnorth.duct-tape:duct-tape:1.0.7
org.rnorth.visible-assertions:visible-assertions:2.1.2
org.rnorth:tcp-unix-socket-proxy:1.0.2
Expand Down
16 changes: 9 additions & 7 deletions gradle/dependency-locks/testCompile.lockfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
com.atlassian.performance.tools:concurrency:1.1.0
com.atlassian.performance.tools:jira-actions:3.9.0
com.atlassian.performance.tools:jira-software-actions:1.3.2
com.atlassian.performance.tools:jvm-tasks:1.2.0
com.atlassian.performance.tools:concurrency:1.1.2
com.atlassian.performance.tools:jira-actions:3.17.2
com.atlassian.performance.tools:jira-software-actions:1.3.5
com.atlassian.performance.tools:jvm-tasks:1.2.3
com.atlassian.performance.tools:ssh-ubuntu:0.2.0
com.atlassian.performance:selenium-js:1.0.1
com.github.stephenc.jcip:jcip-annotations:1.0-1
com.google.code.findbugs:jsr305:3.0.2
com.google.code.gson:gson:2.8.2
Expand All @@ -22,7 +23,8 @@ javax.activation:javax.activation-api:1.2.0
javax.annotation:javax.annotation-api:1.3.2
javax.xml.bind:jaxb-api:2.3.1
junit:junit:4.12
net.bytebuddy:byte-buddy:1.7.9
net.bytebuddy:byte-buddy-agent:1.12.14
net.bytebuddy:byte-buddy:1.12.14
net.java.dev.jna:jna-platform:5.2.0
net.java.dev.jna:jna:5.2.0
org.apache.commons:commons-compress:1.9
Expand All @@ -43,10 +45,10 @@ org.hamcrest:hamcrest-library:1.3
org.jetbrains.kotlin:kotlin-stdlib-common:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.70
org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.70
org.jetbrains.kotlin:kotlin-stdlib:1.2.70
org.jetbrains:annotations:15.0
org.mockito:mockito-core:4.8.0
org.objenesis:objenesis:3.2
org.rnorth.duct-tape:duct-tape:1.0.7
org.rnorth.visible-assertions:visible-assertions:2.1.2
org.rnorth:tcp-unix-socket-proxy:1.0.2
Expand Down
17 changes: 10 additions & 7 deletions gradle/dependency-locks/testCompileClasspath.lockfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
com.atlassian.performance.tools:concurrency:1.1.0
com.atlassian.performance.tools:concurrency:1.1.2
com.atlassian.performance.tools:io:1.2.0
com.atlassian.performance.tools:jira-actions:3.9.0
com.atlassian.performance.tools:jira-software-actions:1.3.2
com.atlassian.performance.tools:jvm-tasks:1.2.0
com.atlassian.performance.tools:jira-actions:3.17.2
com.atlassian.performance.tools:jira-software-actions:1.3.5
com.atlassian.performance.tools:jvm-tasks:1.2.3
com.atlassian.performance.tools:ssh-ubuntu:0.2.0
com.atlassian.performance.tools:ssh:2.3.0
com.atlassian.performance.tools:virtual-users:3.10.0
com.atlassian.performance.tools:ssh:2.4.3
com.atlassian.performance.tools:virtual-users:3.13.2
com.atlassian.performance:selenium-js:1.0.1
com.github.stephenc.jcip:jcip-annotations:1.0-1
com.google.code.findbugs:jsr305:3.0.2
com.google.code.gson:gson:2.8.2
Expand All @@ -29,7 +30,8 @@ javax.annotation:javax.annotation-api:1.3.2
javax.inject:javax.inject:1
javax.xml.bind:jaxb-api:2.3.1
junit:junit:4.12
net.bytebuddy:byte-buddy:1.7.9
net.bytebuddy:byte-buddy-agent:1.12.14
net.bytebuddy:byte-buddy:1.12.14
net.i2p.crypto:eddsa:0.2.0
net.java.dev.jna:jna-platform:5.2.0
net.java.dev.jna:jna:5.2.0
Expand Down Expand Up @@ -81,6 +83,7 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.70
org.jetbrains.kotlin:kotlin-stdlib:1.2.70
org.jetbrains:annotations:15.0
org.jsoup:jsoup:1.10.2
org.mockito:mockito-core:4.8.0
org.rnorth.duct-tape:duct-tape:1.0.7
org.rnorth.visible-assertions:visible-assertions:2.1.2
org.rnorth:tcp-unix-socket-proxy:1.0.2
Expand Down
Loading

0 comments on commit aa0b017

Please sign in to comment.