elastic / ecs-logging-java

https://www.elastic.co/guide/en/ecs-logging/java/current/intro.html
Apache License 2.0
141 stars 75 forks source link

Add example for Log4j ECS Layout #95

Closed vlaborie closed 3 years ago

cla-checker-service[bot] commented 3 years ago

💚 CLA has been signed

apmmachine commented 3 years ago

:grey_exclamation: Build Aborted

The PR is not allowed to run in the CI yet

the below badges are clickable and redirect to their specific view in the CI or DOCS Pipeline View Test View Changes Artifacts

Expand to view the summary

#### Build stats * Build Cause: `[Branch indexing]` * Reason: `The PR is not allowed to run in the CI yet` * Start Time: 2020-11-01T10:31:06.673+0000 * Duration: 3 min 41 sec * Commit: e3c8c7043547e4ab35a2be9d16ff702df72d5eae

Steps errors 2

Expand to view the steps failures

* **Name**: `Load a resource file from a shared library` * Description: * Duration: 0 min 0 sec * Start Time: 2020-11-01T10:33:45.494+0000 * [log](https://apm-ci.elastic.co//blue/rest/organizations/jenkins/pipelines/apm-agent-java/pipelines/ecs-logging-java-mbp/pipelines/PR-95/runs/2/steps/80/log) * **Name**: `Error signal` * Description: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permission * Duration: 0 min 0 sec * Start Time: 2020-11-01T10:33:45.506+0000 * [log](https://apm-ci.elastic.co//blue/rest/organizations/jenkins/pipelines/apm-agent-java/pipelines/ecs-logging-java-mbp/pipelines/PR-95/runs/2/steps/83/log)

Log output

Expand to view the last 100 lines of log output

``` [2020-11-01T10:31:27.187Z] > git merge d729141e6766a9927b1abd747d9ce0756c222c1f # timeout=10 [2020-11-01T10:31:27.204Z] > git rev-parse HEAD^{commit} # timeout=10 [2020-11-01T10:31:27.210Z] Merge succeeded, producing 01f8d6e4d3b24daf2ca6d7c8e923aea7989ca9ca [2020-11-01T10:31:27.210Z] Checking out Revision 01f8d6e4d3b24daf2ca6d7c8e923aea7989ca9ca (PR-95) [2020-11-01T10:31:27.210Z] > git config core.sparsecheckout # timeout=10 [2020-11-01T10:31:27.215Z] > git checkout -f 01f8d6e4d3b24daf2ca6d7c8e923aea7989ca9ca # timeout=15 [2020-11-01T10:31:27.231Z] Commit message: "Merge commit 'd729141e6766a9927b1abd747d9ce0756c222c1f' into HEAD" [2020-11-01T10:31:27.233Z] > git rev-list --no-walk e3c8c7043547e4ab35a2be9d16ff702df72d5eae # timeout=10 [2020-11-01T10:31:27.246Z] Cleaning workspace [2020-11-01T10:31:27.246Z] > git rev-parse --verify HEAD # timeout=10 [2020-11-01T10:31:27.252Z] Resetting working tree [2020-11-01T10:31:27.252Z] > git reset --hard # timeout=10 [2020-11-01T10:31:27.267Z] > git clean -fdx # timeout=10 [2020-11-01T10:31:27.921Z] Masking supported pattern matches of $JOB_GCS_BUCKET or $NOTIFY_TO [2020-11-01T10:31:27.975Z] Timeout set to expire in 1 hr 0 min [2020-11-01T10:31:27.986Z] The timestamps step is unnecessary when timestamps are enabled for all Pipeline builds. [2020-11-01T10:31:43.040Z] Still waiting to schedule task [2020-11-01T10:31:43.041Z] All nodes of label ‘linux&&immutable’ are offline [2020-11-01T10:33:22.823Z] Running on apm-ci-immutable-ubuntu-1804-1604226697372073063 in /var/lib/jenkins/workspace/_java_ecs-logging-java-mbp_PR-95 [2020-11-01T10:33:23.321Z] [INFO] 'shallow' is forced to be disabled when running on PullRequests [2020-11-01T10:33:23.329Z] Running in /var/lib/jenkins/workspace/_java_ecs-logging-java-mbp_PR-95/src/github.com/elastic/ecs-logging-java [2020-11-01T10:33:23.339Z] [INFO] gitCheckout: Checkout SCM PR-95 with default customisation from the Item. [2020-11-01T10:33:23.352Z] [INFO] Override default checkout [2020-11-01T10:33:23.372Z] Sleeping for 10 sec [2020-11-01T10:33:35.576Z] using credential f6c7695a-671e-4f4f-a331-acdce44ff9ba [2020-11-01T10:33:35.609Z] Wiping out workspace first. [2020-11-01T10:33:35.628Z] Cloning the remote Git repository [2020-11-01T10:33:35.628Z] Using shallow clone with depth 3 [2020-11-01T10:33:35.628Z] Avoid fetching tags [2020-11-01T10:33:36.580Z] Cleaning workspace [2020-11-01T10:33:36.597Z] Using shallow fetch with depth 3 [2020-11-01T10:33:36.597Z] Pruning obsolete local branches [2020-11-01T10:33:35.645Z] Cloning repository git@github.com:elastic/ecs-logging-java.git [2020-11-01T10:33:35.714Z] > git init /var/lib/jenkins/workspace/_java_ecs-logging-java-mbp_PR-95/src/github.com/elastic/ecs-logging-java # timeout=10 [2020-11-01T10:33:35.760Z] Fetching upstream changes from git@github.com:elastic/ecs-logging-java.git [2020-11-01T10:33:35.760Z] > git --version # timeout=10 [2020-11-01T10:33:35.766Z] > git --version # 'git version 2.17.1' [2020-11-01T10:33:35.766Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key [2020-11-01T10:33:35.788Z] > git fetch --no-tags --progress -- git@github.com:elastic/ecs-logging-java.git +refs/heads/*:refs/remotes/origin/* # timeout=15 [2020-11-01T10:33:36.528Z] > git config remote.origin.url git@github.com:elastic/ecs-logging-java.git # timeout=10 [2020-11-01T10:33:36.544Z] > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 [2020-11-01T10:33:36.553Z] > git config remote.origin.url git@github.com:elastic/ecs-logging-java.git # timeout=10 [2020-11-01T10:33:36.563Z] > git rev-parse --verify HEAD # timeout=10 [2020-11-01T10:33:36.568Z] No valid HEAD. Skipping the resetting [2020-11-01T10:33:36.568Z] > git clean -fdx # timeout=10 [2020-11-01T10:33:36.583Z] Fetching upstream changes from git@github.com:elastic/ecs-logging-java.git [2020-11-01T10:33:36.583Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key [2020-11-01T10:33:36.589Z] > git fetch --no-tags --progress --prune -- git@github.com:elastic/ecs-logging-java.git +refs/pull/95/head:refs/remotes/origin/PR-95 +refs/heads/master:refs/remotes/origin/master # timeout=15 [2020-11-01T10:33:37.200Z] Merging remotes/origin/master commit d729141e6766a9927b1abd747d9ce0756c222c1f into PR head commit e3c8c7043547e4ab35a2be9d16ff702df72d5eae [2020-11-01T10:33:37.286Z] Merge succeeded, producing ea997af5f48e7db04f3dcf37bc064dd5262bf397 [2020-11-01T10:33:37.287Z] Checking out Revision ea997af5f48e7db04f3dcf37bc064dd5262bf397 (PR-95) [2020-11-01T10:33:37.189Z] > git config core.sparsecheckout # timeout=10 [2020-11-01T10:33:37.195Z] > git checkout -f e3c8c7043547e4ab35a2be9d16ff702df72d5eae # timeout=15 [2020-11-01T10:33:37.226Z] > git remote # timeout=10 [2020-11-01T10:33:37.230Z] > git config --get remote.origin.url # timeout=10 [2020-11-01T10:33:37.235Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key [2020-11-01T10:33:37.238Z] > git merge d729141e6766a9927b1abd747d9ce0756c222c1f # timeout=10 [2020-11-01T10:33:37.258Z] > git rev-parse HEAD^{commit} # timeout=10 [2020-11-01T10:33:37.269Z] > git config core.sparsecheckout # timeout=10 [2020-11-01T10:33:37.288Z] > git checkout -f ea997af5f48e7db04f3dcf37bc064dd5262bf397 # timeout=15 [2020-11-01T10:33:40.793Z] Commit message: "Merge commit 'd729141e6766a9927b1abd747d9ce0756c222c1f' into HEAD" [2020-11-01T10:33:40.772Z] > git rev-list --no-walk e3c8c7043547e4ab35a2be9d16ff702df72d5eae # timeout=10 [2020-11-01T10:33:40.838Z] Cleaning workspace [2020-11-01T10:33:40.815Z] > git rev-parse --verify HEAD # timeout=10 [2020-11-01T10:33:40.835Z] Resetting working tree [2020-11-01T10:33:40.835Z] > git reset --hard # timeout=10 [2020-11-01T10:33:40.846Z] > git clean -fdx # timeout=10 [2020-11-01T10:33:42.038Z] Masking supported pattern matches of $GIT_USERNAME or $GIT_PASSWORD [2020-11-01T10:33:42.587Z] + git fetch https://****:****@github.com/elastic/ecs-logging-java.git +refs/pull/*/head:refs/remotes/origin/pr/* [2020-11-01T10:33:42.889Z] Archiving artifacts [2020-11-01T10:33:43.440Z] + git rev-parse HEAD [2020-11-01T10:33:43.774Z] + git rev-parse HEAD [2020-11-01T10:33:44.074Z] + git rev-parse origin/pr/95 [2020-11-01T10:33:44.103Z] [INFO] githubEnv: Found Git Build Cause: pr [2020-11-01T10:33:44.513Z] Masking supported pattern matches of $GITHUB_TOKEN [2020-11-01T10:33:45.299Z] [WARN] githubApiCall: The REST API call https://api.github.com/repos/elastic/ecs-logging-java/pulls/95/reviews return 0 elements [2020-11-01T10:33:45.318Z] [INFO] githubPrCheckApproved: Title: Add example for Log4j ECS Layout - User: vlaborie - Author Association: FIRST_TIME_CONTRIBUTOR [2020-11-01T10:33:45.508Z] ERROR: githubPrCheckApproved: The PR is not allowed to run in the CI yet [2020-11-01T10:33:45.508Z] ERROR: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permissions can do so.) [2020-11-01T10:33:45.548Z] [INFO] Let's stop build #2. The PR is not allowed to run in the CI yet [2020-11-01T10:33:45.564Z] Sleeping for 5 sec [2020-11-01T10:33:46.595Z] Stage "Build" skipped due to earlier failure(s) [2020-11-01T10:33:46.679Z] Stage "Tests" skipped due to earlier failure(s) [2020-11-01T10:33:46.709Z] Stage "Unit Tests" skipped due to earlier failure(s) [2020-11-01T10:33:46.710Z] Stage "Javadoc" skipped due to earlier failure(s) [2020-11-01T10:33:46.710Z] Stage "Sanity checks" skipped due to earlier failure(s) [2020-11-01T10:33:46.733Z] Failed in branch Unit Tests [2020-11-01T10:33:46.734Z] Failed in branch Javadoc [2020-11-01T10:33:46.735Z] Failed in branch Sanity checks [2020-11-01T10:33:47.353Z] Running on worker-1225339 in /var/lib/jenkins/workspace/_java_ecs-logging-java-mbp_PR-95 [2020-11-01T10:33:47.566Z] [INFO] getVaultSecret: Getting secrets [2020-11-01T10:33:47.667Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID [2020-11-01T10:33:49.479Z] + chmod 755 generate-build-data.sh [2020-11-01T10:33:49.479Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/ecs-logging-java-mbp/PR-95/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/ecs-logging-java-mbp/PR-95/runs/2 ABORTED 161414 [2020-11-01T10:33:49.479Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/ecs-logging-java-mbp/PR-95/runs/2/steps/?limit=10000 -o steps-info.json [2020-11-01T10:33:51.745Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/ecs-logging-java-mbp/PR-95/runs/2/tests/?status=FAILED -o tests-errors.json [2020-11-01T10:33:52.445Z] Retry 1/3 exited 22, retrying in 1 seconds... [2020-11-01T10:33:53.897Z] Retry 2/3 exited 22, retrying in 2 seconds... [2020-11-01T10:33:56.164Z] Retry 3/3 exited 22, no more retries left. [2020-11-01T10:33:56.164Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/ecs-logging-java-mbp/PR-95/runs/2/log/ -o pipeline-log.txt ```

felixbarny commented 3 years ago

Thanks for your contribution! Please sign the CLA so that I can merge this.

felixbarny commented 3 years ago

Hey @vlaborie 👋 A friendly reminder to please sign the CLA. I can't merge this PR otherwise.