Run Graylog locally

Hi All,

I am new to graylog, I want to run graylog locally, I mean from the source code which i got from GIT I want to run it, Can anyone please help me in this. I installed all the required stuffs, I did npm install for “graylog-web interface” on npm start I am getting error “webpackConfig” is not defined, can anyone please help me by telling the steps. Thanks in advance

Hej @debasish283

we have build a graylog-project-cli that can help you with everything and the readme also give you some next steps.

regards
Jan

@jan im fallowing same steps mentioned in gaylog-project-cli after bootstraping im trying to compile using maven mvn compile but build fails saying below error

[ERROR] Failed to execute goal on project graylog2-server: Could not resolve dependencies for project org.graylog2:graylog2-server:jar:2.3.0-alpha.4-SNAPSHOT: Failed to collect dependencies at org.glassfish.jersey.ext:jersey-bean-validation:jar:2.25.1 -> org.hibernate:hibernate-validator:jar:5.4.1.Final: Failed to read artifact descriptor for org.hibernate:hibernate-validator:jar:5.4.1.Final: Could not transfer artifact org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:2.2.0 from/to sonatype-nexus-releases (https://oss.sonatype.org/content/repositories/releases): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [Help 1]

'$ mvn compile

[INFO] Scanning for projects…
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.graylog:runner:jar:2.3.0-alpha.4-SNAPSHOT
[WARNING] Detected profiles.xml alongside org.graylog:graylog-project:2.3.0-alpha.4-SNAPSHOT, this file is no longer supported and was ignored, please use the settings.xml instead
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.graylog:graylog-project:pom:2.3.0-alpha.4-SNAPSHOT
[WARNING] Detected profiles.xml alongside org.graylog:graylog-project:2.3.0-alpha.4-SNAPSHOT, this file is no longer supported and was ignored, please use the settings.xml instead
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Graylog Parent POM
[INFO] Graylog Project Parent POM
[INFO] AutoValue JavaBean extension
[INFO] Graylog
[INFO] Graylog Plugin Parent POM
[INFO] Graylog Usage Statistics Plugin
[INFO] Graylog Plugin with Web support Parent POM
[INFO] graylog-plugin-map-widget
[INFO] Graylog Pipeline Plugin Parent
[INFO] graylog-plugin-pipeline-processor
[INFO] graylog-plugin-collector
[INFO] graylog-plugin-enterprise-integration
[INFO] graylog-plugin-beats
[INFO] graylog-project
[INFO] runner
[INFO] integration-tests
[INFO] graylog-plugin-archetype
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Graylog Parent POM 2.3.0-alpha.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Graylog Project Parent POM 2.3.0-alpha.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — forbiddenapis:2.3:check (forbidden-apis-src) @ graylog-project-parent —
[INFO] Skipping execution for packaging “pom”
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building AutoValue JavaBean extension 2.3.0-alpha.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-resources-plugin:3.0.2:resources (default-resources) @ auto-value-javabean —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] — maven-compiler-plugin:3.6.1:compile (default-compile) @ auto-value-javabean —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — forbiddenapis:2.3:check (forbidden-apis-src) @ auto-value-javabean —
[INFO] Skipping forbidden-apis checks.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Graylog 2.3.0-alpha.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Could not transfer metadata junit:junit-dep/maven-metadata.xml from/to sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Graylog Parent POM … SUCCESS [ 0.004 s]
[INFO] Graylog Project Parent POM … SUCCESS [ 0.585 s]
[INFO] AutoValue JavaBean extension … SUCCESS [ 3.147 s]
[INFO] Graylog … FAILURE [ 10.353 s]
[INFO] Graylog Plugin Parent POM … SKIPPED
[INFO] Graylog Usage Statistics Plugin … SKIPPED
[INFO] Graylog Plugin with Web support Parent POM … SKIPPED
[INFO] graylog-plugin-map-widget … SKIPPED
[INFO] Graylog Pipeline Plugin Parent … SKIPPED
[INFO] graylog-plugin-pipeline-processor … SKIPPED
[INFO] graylog-plugin-collector … SKIPPED
[INFO] graylog-plugin-enterprise-integration … SKIPPED
[INFO] graylog-plugin-beats … SKIPPED
[INFO] graylog-project … SKIPPED
[INFO] runner … SKIPPED
[INFO] integration-tests … SKIPPED
[INFO] graylog-plugin-archetype … SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.917 s
[INFO] Finished at: 2017-05-31T04:56:11+00:00
[INFO] Final Memory: 31M/74M
[INFO] --------------------------------------------------’

please let me know whats wrong

Hi Jan,

On https://oss.sonatype.org/content/repositories/releases/org/apache/logging/log4j/log4j-core/2.3/log4j-core-2.3.pom I am getting the below error. Can you please help.

404 - Path /org/apache/logging/log4j/log4j-core/2.3/log4j-core-2.3.pom not found in local storage of repository “Releases” [id=releases]

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.