Hi
@Raz-48
,
You should not need to compile Graylog. Simply install Graylog and the other components as described here:
https://go2docs.graylog.org/5-2/downloading_and_installing_graylog/installing_graylog.html?tocpath=Downloading%20and%20Installing%20Graylog|Installing%20Graylog|_____0
Then proceed to the Configuration steps as outlined in Getting Started, here:
https://go2docs.graylog.org/5-2/setting_up_graylog/initial_configuration_settings.html?tocpath=Setting%20up%20Graylog|Getting%20Started|Initial%20Configuration%20Settings|_____0
Good luck!
Thanks !
But I want to run the graylog2-Server From Source Code on my local Server
I have already successfully build the code made the graylog-5.2.2-20240401093521-graylog-server-tarball.tar.gz file and a want to run this tar file
is there any procedure to run this tar file and start the graylog2-server
Here is the total Output of building the Source code
] — jar:3.3.0:jar (default-jar) @ data-node —
[WARNING] Parameter ‘finalName’ is read-only, must not be used in configuration
[INFO] Building jar: /graylog2-server/data-node/target/graylog-datanode-5.2.2.jar
[INFO]
[INFO] — jar:3.3.0:test-jar (default) @ data-node —
[WARNING] Parameter ‘finalName’ is read-only, must not be used in configuration
[INFO] Building jar: /graylog2-server/data-node/target/graylog-datanode-5.2.2-tests.jar
[INFO]
[INFO] — assembly:3.6.0:single (generate-data-node-artifact) @ data-node —
[INFO] Reading assembly descriptor: src/main/assembly/datanode.xml
[INFO] Building tar: /graylog2-server/data-node/…/target/assembly/datanode-5.2.2-20240401093521-datanode-tarball.tar.gz
[INFO]
[INFO] -------------------< org.graylog:full-backend-tests >-------------------
[INFO] Building full-backend-tests 5.2.2 [8/11]
[INFO] from full-backend-tests/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] — enforcer:3.4.1:enforce (enforce-versions) @ full-backend-tests —
[INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed
[INFO] Rule 1: org.apache.maven.enforcer.rules.BanDuplicatePomDependencyVersions passed
[INFO]
[INFO] — resources:3.3.1:resources (default-resources) @ full-backend-tests —
[INFO] skip non existing resourceDirectory /graylog2-server/full-backend-tests/src/main/resources
[INFO]
[INFO] — compiler:3.11.0:compile (default-compile) @ full-backend-tests —
[INFO] No sources to compile
[INFO]
[INFO] — forbiddenapis:3.5.1:check (forbidden-apis-src) @ full-backend-tests —
[INFO] Scanning for classes to check…
[INFO] Classes directory does not exist, forbiddenapis check skipped: /graylog2-server/full-backend-tests/target/classes
[INFO]
[INFO] — resources:3.3.1:testResources (default-testResources) @ full-backend-tests —
[INFO] Copying 21 resources from src/test/resources to target/test-classes
[INFO]
[INFO] — compiler:3.11.0:testCompile (default-testCompile) @ full-backend-tests —
[INFO] Compiling 38 source files with javac [debug deprecation release 17] to target/test-classes
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/ScriptingApiResourceIT.java:[54,34] [deprecation] Java6Assertions in org.assertj.core.api has been deprecated
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/ScriptingApiResourceIT.java:[54,34] [deprecation] Java6Assertions in org.assertj.core.api has been deprecated
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/ScriptingApiResourceIT.java:[54,34] [deprecation] Java6Assertions in org.assertj.core.api has been deprecated
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog2/indexer/indices/IndicesIT.java:[92,43] [JavaTimeDefaultTimeZone] ZonedDateTime.now() is not allowed because it silently uses the system default time-zone. You must pass an explicit time-zone (e.g., ZoneId.of(“America/Los_Angeles”)) to this method.
(see
JavaTimeDefaultTimeZone
)
Did you mean ‘.creationDate(ZonedDateTime.now(ZoneId.systemDefault()))’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog2/indexer/indices/IndicesIT.java:[401,10] [EmptyCatch] Caught exceptions should not be ignored
(see
Google Java Style Guide
)
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog2/indexer/indices/IndicesIT.java:[441,15] [UnnecessaryParentheses] These grouping parentheses are unnecessary; it is unlikely the code will be misinterpreted without them
(see
UnnecessaryParentheses
)
Did you mean ‘assert Base64.isBase64(uuid);’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/aggregations/SearchAggregationsIT.java:[232,94] [FloatingPointLiteralPrecision] Floating point literal loses precision
(see
FloatingPointLiteralPrecision
)
Did you mean ‘.body(pathToMetricResult(“2022-09-26T14:12:20.000Z”, “avg(took_ms)”), equalTo(59.35443f))’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/aggregations/SearchAggregationsIT.java:[234,94] [FloatingPointLiteralPrecision] Floating point literal loses precision
(see
FloatingPointLiteralPrecision
)
Did you mean ‘.body(pathToMetricResult(“2022-09-26T14:12:30.000Z”, “avg(took_ms)”), equalTo(70.27411f))’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/aggregations/SearchAggregationsIT.java:[236,94] [FloatingPointLiteralPrecision] Floating point literal loses precision
(see
FloatingPointLiteralPrecision
)
Did you mean ‘.body(pathToMetricResult(“2022-09-26T14:12:40.000Z”, “avg(took_ms)”), equalTo(131.21906f))’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/aggregations/SearchAggregationsIT.java:[271,76] [FloatingPointLiteralPrecision] Floating point literal loses precision
(see
FloatingPointLiteralPrecision
)
Did you mean ‘.body(pathToMetricResult(“DELETE”, “avg(took_ms)”), equalTo(73.55769f))’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/aggregations/SearchAggregationsIT.java:[273,73] [FloatingPointLiteralPrecision] Floating point literal loses precision
(see
FloatingPointLiteralPrecision
)
Did you mean ‘.body(pathToMetricResult(“GET”, “avg(took_ms)”), equalTo(63.148838f));’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/aggregations/SearchAggregationsIT.java:[817,87] [FloatingPointLiteralPrecision] Floating point literal loses precision
(see
FloatingPointLiteralPrecision
)
Did you mean ‘.body(pathToMetricResult(“DELETE”, “percentage(took_ms,SUM)”), equalTo(0.048577596f))’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/aggregations/SearchAggregationsIT.java:[818,85] [FloatingPointLiteralPrecision] Floating point literal loses precision
(see
FloatingPointLiteralPrecision
)
Did you mean ‘.body(pathToMetricResult(“POST”, “percentage(took_ms,SUM)”), equalTo(0.1485014f))’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/aggregations/SearchAggregationsIT.java:[819,84] [FloatingPointLiteralPrecision] Floating point literal loses precision
(see
FloatingPointLiteralPrecision
)
Did you mean ‘.body(pathToMetricResult(“PUT”, “percentage(took_ms,SUM)”), equalTo(0.113208026f));’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/aggregations/CompoundFieldsAggregationIT.java:[58,21] [UnusedVariable] The local variable ‘streamA’ is never read.
(see
UnusedVariable
)
Did you mean to remove this line or ‘api.streams().createStream(“Stream A”, indexSetA, DefaultStreamMatches.REMOVE, new Streams.StreamRule(StreamRuleType.EXACT.toInteger(), “streamA”, “target_stream”, false));’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/aggregations/CompoundFieldsAggregationIT.java:[92,33] [UnusedVariable] The local variable ‘responseAsc’ is never read.
(see
UnusedVariable
)
Did you mean to remove this line or ‘new GraylogApiResponse(api.post(“/search/aggregate”,“”"’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/aggregations/CompoundFieldsAggregationIT.java:[59,21] [UnusedVariable] The local variable ‘streamB’ is never read.
(see
UnusedVariable
)
Did you mean to remove this line or ‘api.streams().createStream(“Stream B”, indexSetB, DefaultStreamMatches.REMOVE, new Streams.StreamRule(StreamRuleType.EXACT.toInteger(), “streamB”, “target_stream”, false));’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/testing/backenddriver/SearchDriver.java:[47,3] [InvalidBlockTag]
@link
is not a valid block tag. Should it be an inline tag instead?
(see
InvalidBlockTag
)
Did you mean ‘* {
@link
} org.graylog.testing.completebackend.GraylogBackendExtension’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/testing/backenddriver/SearchDriver.java:[55,7] [InvalidParam] Parameter name
Supplier
is unknown.
(see
InvalidParam
)
Did you mean ‘*’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/testing/backenddriver/SearchDriver.java:[55,7] [MissingSummary] A summary fragment is required; consider using the value of the
@return
block as a summary fragment instead.
(see
Google Java Style Guide
)
Did you mean '
Returns all messages’ “message” field as List.'?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/TimeLimitIT.java:[39,34] [UnusedVariable] The local variable ‘response’ is never read.
(see
UnusedVariable
)
Did you mean to remove this line or ‘given()’?
[WARNING] /graylog2-server/full-backend-tests/src/test/java/org/graylog/plugins/views/ScriptingApiResourceIT.java:[687,34] [UnusedVariable] The local variable ‘validatableResponse’ is never read.
(see
UnusedVariable
)
Did you mean to remove this line or ‘given()’?
[INFO]
[INFO] — forbiddenapis:3.5.1:testCheck (forbidden-apis-test) @ full-backend-tests —
[INFO] Scanning for classes to check…
[INFO] Reading bundled API signatures: jdk-unsafe-14
[INFO] Reading bundled API signatures: jdk-deprecated-17
[INFO] Reading bundled API signatures: jdk-reflection
[INFO] Reading bundled API signatures: jdk-non-portable
[INFO] Reading bundled API signatures: commons-io-unsafe-2.11.0
[INFO] Reading inline API signatures…
[INFO] Loading classes to check…
[INFO] Scanning classes for violations…
[INFO] Scanned 44 class file(s) for forbidden API invocations (in 0.21s), 0 error(s).
[INFO]
[INFO] — surefire:3.1.2:test (default-test) @ full-backend-tests —
[INFO] Tests are skipped.
[INFO]
[INFO] — jar:3.3.0:jar (default-jar) @ full-backend-tests —
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /graylog2-server/full-backend-tests/target/full-backend-tests-5.2.2.jar
[INFO]
[INFO] — jar:3.3.0:test-jar (default) @ full-backend-tests —
[INFO] Building jar: /graylog2-server/full-backend-tests/target/full-backend-tests-5.2.2-tests.jar
[INFO]
[INFO] -----------< org.graylog.plugins:graylog-plugin-web-parent >------------
[INFO] Building Graylog Plugin with Web support Parent POM 5.2.2 [9/11]
[INFO] from graylog-plugin-parent/graylog-plugin-web-parent/pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] — enforcer:3.4.1:enforce (enforce-versions) @ graylog-plugin-web-parent —
[INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed
[INFO] Rule 1: org.apache.maven.enforcer.rules.BanDuplicatePomDependencyVersions passed
[INFO]
[INFO] — frontend:1.14.2:install-node-and-yarn (install node and yarn) @ graylog-plugin-web-parent —
[INFO] Node v18.18.0 is already installed.
[INFO] Yarn 1.22.19 is already installed.
[INFO]
[INFO] — frontend:1.14.2:yarn (yarn install) @ graylog-plugin-web-parent —
[INFO] Running ‘yarn install’ in /graylog2-server/graylog-plugin-parent/graylog-plugin-web-parent
[INFO] yarn install v1.22.19
[INFO] warning package.json: License should be a valid SPDX license expression
[INFO] warning [email protected]: License should be a valid SPDX license expression
[INFO] [1/4] Resolving packages…
[INFO] success Already up-to-date.
[INFO] Done in 0.06s.
[INFO]
[INFO] — frontend:1.14.2:yarn (yarn run build) @ graylog-plugin-web-parent —
[INFO] Running ‘yarn run build’ in /graylog2-server/graylog-plugin-parent/graylog-plugin-web-parent
[INFO] yarn run v1.22.19
[INFO] warning package.json: License should be a valid SPDX license expression
[INFO] $ echo ‘Dummy build script for graylog-plugin-web-parent’
[INFO] Dummy build script for graylog-plugin-web-parent
[INFO] Done in 0.06s.
[INFO]
[INFO] — forbiddenapis:3.5.1:check (forbidden-apis-src) @ graylog-plugin-web-parent —
[INFO] Skipping execution for packaging “pom”
[INFO]
[INFO] — forbiddenapis:3.5.1:testCheck (forbidden-apis-test) @ graylog-plugin-web-parent —
[INFO] Skipping execution for packaging “pom”
[INFO]
[INFO] ----------------< org.graylog:graylog-plugin-archetype >----------------
[INFO] Building graylog-plugin-archetype 5.2.2 [10/11]
[INFO] from graylog-plugin-archetype/pom.xml
[INFO] --------------------------[ maven-archetype ]---------------------------
[INFO]
[INFO] — enforcer:3.4.1:enforce (enforce-versions) @ graylog-plugin-archetype —
[INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed
[INFO] Rule 1: org.apache.maven.enforcer.rules.BanDuplicatePomDependencyVersions passed
[INFO] Rule 2: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed
[INFO] Rule 3: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed
[INFO] Rule 4: org.apache.maven.enforcer.rules.RequireOS passed
[INFO]
[INFO] — resources:3.3.1:resources (default-resources) @ graylog-plugin-archetype —
[INFO] Copying 18 resources from src/main/resources to target/classes
[INFO]
[INFO] — forbiddenapis:3.5.1:check (forbidden-apis-src) @ graylog-plugin-archetype —
[INFO] Scanning for classes to check…
[INFO] No classes found in ‘/graylog2-server/graylog-plugin-archetype/target/classes’ (includes=[**/
.class], excludes=null), forbiddenapis check skipped.
[INFO]
[INFO] — resources:3.3.1:testResources (default-testResources) @ graylog-plugin-archetype —
[INFO] skip non existing resourceDirectory /graylog2-server/graylog-plugin-archetype/src/test/resources
[INFO]
[INFO] — forbiddenapis:3.5.1:testCheck (forbidden-apis-test) @ graylog-plugin-archetype —
[INFO] Scanning for classes to check…
[INFO] Classes directory does not exist, forbiddenapis check skipped: /graylog2-server/graylog-plugin-archetype/target/test-classes
[INFO]
[INFO] — archetype:3.2.1:jar (default-jar) @ graylog-plugin-archetype —
[INFO] Building archetype jar: /graylog2-server/graylog-plugin-archetype/target/graylog-plugin-archetype-5.2.2.jar
[INFO] Building jar: /graylog2-server/graylog-plugin-archetype/target/graylog-plugin-archetype-5.2.2.jar
[INFO]
[INFO] ----------------------< org.graylog:distribution >----------------------
[INFO] Building Graylog Binary Distribution Tarball 5.2.2 [11/11]
[INFO] from distribution/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] — enforcer:3.4.1:enforce (enforce-versions) @ distribution —
[INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed
[INFO] Rule 1: org.apache.maven.enforcer.rules.BanDuplicatePomDependencyVersions passed
[INFO]
[INFO] — resources:3.3.1:resources (default-resources) @ distribution —
[INFO] skip non existing resourceDirectory /graylog2-server/distribution/src/main/resources
[INFO]
[INFO] — compiler:3.11.0:compile (default-compile) @ distribution —
[INFO] No sources to compile
[INFO]
[INFO] — forbiddenapis:3.5.1:check (forbidden-apis-src) @ distribution —
[INFO] Scanning for classes to check…
[INFO] Classes directory does not exist, forbiddenapis check skipped: /graylog2-server/distribution/target/classes
[INFO]
[INFO] — resources:3.3.1:testResources (default-testResources) @ distribution —
[INFO] skip non existing resourceDirectory /graylog2-server/distribution/src/test/resources
[INFO]
[INFO] — compiler:3.11.0:testCompile (default-testCompile) @ distribution —
[INFO] No sources to compile
[INFO]
[INFO] — forbiddenapis:3.5.1:testCheck (forbidden-apis-test) @ distribution —
[INFO] Scanning for classes to check…
[INFO] Classes directory does not exist, forbiddenapis check skipped: /graylog2-server/distribution/target/test-classes
[INFO]
[INFO] — surefire:3.1.2:test (default-test) @ distribution —
[INFO] Tests are skipped.
[INFO]
[INFO] — jar:3.3.0:jar (default-jar) @ distribution —
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /graylog2-server/distribution/target/distribution-5.2.2.jar
[INFO]
[INFO] — assembly:3.6.0:single (generate-server-artifact) @ distribution —
[INFO] Reading assembly descriptor: src/main/assembly/graylog.xml
[INFO] Building tar: /graylog2-server/distribution/…/target/assembly/graylog-5.2.2-20240401093521-graylog-server-tarball.tar.gz
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Graylog Parent POM 5.2.2:
[INFO]
[INFO] Graylog Parent POM … SUCCESS [ 0.278 s]
[INFO] Graylog Project Parent POM … SUCCESS [ 0.014 s]
[INFO] Graylog … SUCCESS [02:46 min]
[INFO] Graylog Plugin Parent POM … SUCCESS [ 0.380 s]
[INFO] graylog-storage-elasticsearch7 … SUCCESS [ 8.997 s]
[INFO] graylog-storage-opensearch2 … SUCCESS [ 9.651 s]
[INFO] DataNode … SUCCESS [01:56 min]
[INFO] full-backend-tests … SUCCESS [ 5.533 s]
[INFO] Graylog Plugin with Web support Parent POM … SUCCESS [ 1.084 s]
[INFO] graylog-plugin-archetype … SUCCESS [ 0.505 s]
[INFO] Graylog Binary Distribution Tarball … SUCCESS [ 10.909 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:19 min
[INFO] Finished at: 2024-04-01T09:40:41Z
[INFO] ------------------------------------------------------------------------