The toolchain recommanded for graylog web localization?

Hi Team,

What is the development toolchain recommanded for graylog web localization ? especially the visualization tools.

Best wishes
charles

could you please explain a little mre what you like todo.

Jan,

I want to localize the frontend. i already found it was not only jobs related to codes in graylog-web-interface module. so i am looking for a way for quickly find out those related data or codes in an interactive and visible way or if it was not available at least more effectively than the way i currently done by search source codes by notepad++ and modify them, and uploaded to linux and then mvn clean + mvn compile(time costly) + run from IDE and then observing changes from web browser.

thanks.
charles.

you can speed up your work by using IDE for your work - but other than that no other option is know to me to work with the source of Graylog.

Hi Jon,

thanks. I am just jump to try InteliJ IDEA at this april with no experience with any IDE before.so i am really a system engineer instead of a developper. but anyway, is there any other settings have to set than that described by README on the graylog-project github site ?

Thanks.
charles

not that I know - but I’m only a system administrator with some little coding experience … according to our devs all is covered in the readme.

each time when i run mvn clean and then mvn compile, although eventually i got successful but i always got error messages like following, do this mean that some dependencies should be installed ? :

[INFO] --- frontend-maven-plugin:1.6:yarn (yarn install) @ graylog2-server ---
[INFO] Running 'yarn install' in /home/cdeng/code/chinese/graylog-project-repos/graylog2-server/graylog2-web-interface
[INFO] yarn install v1.12.3
[INFO] [1/4] Resolving packages...
[INFO] [2/4] Fetching packages...
[INFO] info fsevents@1.2.4: The platform "linux" is incompatible with this module.
[INFO] info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[INFO] [3/4] Linking dependencies...
[ERROR] warning "graylog-web-plugin > reflux@0.2.13" has incorrect peer dependency "react@>=0.12.2 <0.15.0".
[ERROR] warning " > react-overlays@0.7.4" has unmet peer dependency "react@^0.14.9 || >=15.3.0".
[ERROR] warning " > react-overlays@0.7.4" has unmet peer dependency "react-dom@^0.14.9 || >=15.3.0".
[ERROR] warning "graylog-web-plugin > eslint-config-graylog@1.2.0" has incorrect peer dependency "webpack@^3.4.1".
[ERROR] warning " > loadable-components@2.2.3" has unmet peer dependency "react@^15.0.0 || ^16.0.0".
[ERROR] warning "loadable-components > hoist-non-react-statics@3.0.1" has unmet peer dependency "react@>=14.x".
[ERROR] warning " > react-ace@5.10.0" has unmet peer dependency "react@^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0".
[ERROR] warning " > react-ace@5.10.0" has unmet peer dependency "react-dom@^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0".
[ERROR] warning " > react-day-picker@5.5.3" has unmet peer dependency "react@~0.13.x || ~0.14.x || ^15.0.0".
[ERROR] warning " > react-dnd@7.0.2" has unmet peer dependency "react@>= 16.3".
[ERROR] warning "react-dnd > recompose@0.30.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
[ERROR] warning " > react-grid-layout@0.14.7" has unmet peer dependency "react@^0.14.3 || ^15.0.0".
[ERROR] warning " > react-grid-layout@0.14.7" has unmet peer dependency "react-dom@^0.14.3 || ^15.0.0".
[ERROR] warning " > react-resizable@1.7.5" has unmet peer dependency "react@0.14.x || 15.x || 16.x".
[ERROR] warning " > react-resizable@1.7.5" has unmet peer dependency "react-dom@0.14.x || 15.x || 16.x".
[ERROR] warning " > react-isolated-scroll@0.1.1" has unmet peer dependency "react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0".
[ERROR] warning " > react-leaflet@1.9.1" has unmet peer dependency "prop-types@^15.5.0".
[ERROR] warning " > react-leaflet@1.9.1" has unmet peer dependency "react@^15.0.0 || ^16.0.0".
[ERROR] warning " > react-leaflet@1.9.1" has unmet peer dependency "react-dom@^15.0.0 || ^16.0.0".
[ERROR] warning " > react-select@1.2.1" has unmet peer dependency "react@^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0".
[ERROR] warning " > react-select@1.2.1" has unmet peer dependency "react-dom@^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0".
[ERROR] warning "react-select > react-input-autosize@2.2.1" has unmet peer dependency "react@^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0".
[ERROR] warning " > enzyme-adapter-react-16@1.7.0" has unmet peer dependency "react@^16.0.0-0".
[ERROR] warning " > enzyme-adapter-react-16@1.7.0" has unmet peer dependency "react-dom@^16.0.0-0".
[ERROR] warning "enzyme-adapter-react-16 > enzyme-adapter-utils@1.9.0" has unmet peer dependency "react@0.13.x || 0.14.x || ^15.0.0-0 || ^16.0.0-0".
[ERROR] warning "enzyme-adapter-react-16 > react-test-renderer@16.5.1" has unmet peer dependency "react@^16.0.0".
[ERROR] warning " > estraverse-fb@1.3.2" has unmet peer dependency "estraverse@*".
[ERROR] warning " > extract-text-webpack-plugin@3.0.2" has incorrect peer dependency "webpack@^3.1.0".
[ERROR] warning "jest-enzyme > jest-environment-enzyme@7.0.1" has unmet peer dependency "react@^0.13.0 || ^0.14.0 || ^15.0.0 || >=16.x".
[ERROR] warning " > react-styleguidist@7.0.7" has unmet peer dependency "react@>=15".
[ERROR] warning " > react-styleguidist@7.0.7" has unmet peer dependency "react-dom@>=15".
[ERROR] warning "react-styleguidist > markdown-to-jsx@6.6.1" has unmet peer dependency "react@>= 0.14.0".
[ERROR] warning "react-styleguidist > react-codemirror2@4.2.1" has unmet peer dependency "react@>=15.5 <=16.x".
[ERROR] warning "react-styleguidist > react-group@1.0.6" has unmet peer dependency "react@>=15.0.0".
[ERROR] warning "react-styleguidist > react-icons@2.2.7" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
[ERROR] warning "react-styleguidist > react-icons@2.2.7" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0".
[ERROR] warning "react-styleguidist > webpack-dev-server@2.11.2" has incorrect peer dependency "webpack@^2.2.0 || ^3.0.0".
[ERROR] warning "react-styleguidist > react-icons > react-icon-base@2.1.0" has unmet peer dependency "react@*".
[ERROR] warning "react-styleguidist > react-icons > react-icon-base@2.1.0" has unmet peer dependency "react-dom@*".
[ERROR] warning "react-styleguidist > webpack-dev-server > webpack-dev-middleware@1.12.2" has incorrect peer dependency "webpack@^1.0.0 || ^2.0.0 || ^3.0.0".
[ERROR] warning " > react-test-renderer@16.6.3" has unmet peer dependency "react@^16.6.3".
[INFO] [4/4] Building fresh packages...
[INFO] Done in 182.64s.
[INFO] 
[INFO] --- frontend-maven-plugin:1.6:yarn (yarn run build) @ graylog2-server ---
[INFO] Running 'yarn run build' in /home/cdeng/code/chinese/graylog-project-repos/graylog2-server/graylog2-web-interface
[INFO] yarn run v1.12.3
[INFO] $ disable_plugins=true webpack --config webpack.bundled.js
[ERROR] Running in production mode
[ERROR] Building vendor bundle.
[ERROR] clean-webpack-plugin: /home/cdeng/code/chinese/graylog-project-repos/graylog2-server/graylog2-web-interface/build has been removed.
[ERROR] (node:63197) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
[ERROR] Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`

No, these error messages are “fine”. We do rely on flattening of the npm dependency tree so transitive dependencies of the graylog-web-plugin module that is used by core and all plugins get installed too. Unfortunately the peer dependency checks of other modules do not check transitive deps (which is some kind of an antipattern used by us) and therefore print out this message. General functionality of the web interface should not be impacted.

1 Like

Thanks Dennis.
and more issue need help:
each time after i upload modified source codes, and do synchronize from IntelliJ IDEA, and rebuild or run the server, it report not found class RuleLangBaseListener and package RuleLangParser. if i have not synchronize and rebuild it, it will after i run the server which was built last time. but run mvn clean and mvn compile from command line and then run server will fine. is there any setting we have to do with IntelliJ IDEA so that we don’t need run mvn clean and mvn compile after codes modified ?

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