Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/atlassian_bitbucket/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.6.0"
changes:
- description: Prevent updating fleet health status to degraded.
type: enhancement
link: https://github.com/elastic/integrations/pull/15584
- version: "2.5.0"
changes:
- description: Improve error reporting.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ response.split:
response.pagination:
- set:
target: url.value
value: '[[ .last_response.body.pagingInfo.nextPageLink ]]'
value: '[[ if index .last_response.body.pagingInfo "nextPageLink" ]][[ .last_response.body.pagingInfo.nextPageLink ]][[ end ]]'
fail_on_template_error: true
do_not_log_failure: true

cursor:
last_timestamp:
Expand Down
65 changes: 46 additions & 19 deletions packages/atlassian_bitbucket/data_stream/audit/sample_event.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"@timestamp": "2021-11-27T18:10:57.316Z",
"@timestamp": "2021-11-27T18:13:19.888Z",
"agent": {
"ephemeral_id": "c1c6859f-88f5-4ae8-ad40-5c0c9fe933d1",
"id": "82d0dfd8-3946-4ac0-a092-a9146a71e3f7",
"name": "docker-fleet-agent",
"ephemeral_id": "949c3cd9-59d0-4214-bd94-b4388d99ca39",
"id": "111e6217-e5c2-49d6-88df-a1a2f716685b",
"name": "elastic-agent-45713",
"type": "filebeat",
"version": "8.0.0-beta1"
"version": "8.19.4"
},
"bitbucket": {
"audit": {
Expand All @@ -25,43 +25,71 @@
],
"method": "Browser",
"type": {
"action": "Project created",
"actionI18nKey": "bitbucket.service.project.audit.action.projectcreated",
"action": "Project deletion requested",
"actionI18nKey": "bitbucket.service.project.audit.action.projectdeletionrequested",
"area": "LOCAL_CONFIG_AND_ADMINISTRATION",
"category": "Projects",
"categoryI18nKey": "bitbucket.service.audit.category.projects"
"categoryI18nKey": "bitbucket.service.audit.category.projects",
"level": "BASE"
}
}
},
"data_stream": {
"dataset": "atlassian_bitbucket.audit",
"namespace": "ep",
"namespace": "68281",
"type": "logs"
},
"ecs": {
"version": "8.11.0"
},
"elastic_agent": {
"id": "82d0dfd8-3946-4ac0-a092-a9146a71e3f7",
"id": "111e6217-e5c2-49d6-88df-a1a2f716685b",
"snapshot": false,
"version": "8.0.0-beta1"
"version": "8.19.4"
},
"event": {
"action": "bitbucket.service.project.audit.action.projectcreated",
"action": "bitbucket.service.project.audit.action.projectdeletionrequested",
"agent_id_status": "verified",
"category": [
"configuration"
],
"created": "2021-12-24T00:39:23.076Z",
"dataset": "atlassian_bitbucket.audit",
"ingested": "2021-12-24T00:39:24Z",
"ingested": "2025-10-05T12:01:16Z",
"kind": "event",
"original": "{\"affectedObjects\":[{\"id\":\"3\",\"name\":\"AT\",\"type\":\"PROJECT\"}],\"author\":{\"avatarUri\":\"\",\"id\":\"2\",\"name\":\"admin\",\"type\":\"NORMAL\",\"uri\":\"http://bitbucket.internal:7990/users/admin\"},\"changedValues\":[],\"extraAttributes\":[{\"name\":\"target\",\"nameI18nKey\":\"bitbucket.audit.attribute.legacy.target\",\"value\":\"AT\"}],\"method\":\"Browser\",\"node\":\"8767044c-1b98-4d64-82db-ef29af8c3792\",\"source\":\"10.100.100.2\",\"system\":\"http://bitbucket.internal:7990\",\"timestamp\":\"2021-11-27T18:10:57.316Z\",\"type\":{\"action\":\"Project created\",\"actionI18nKey\":\"bitbucket.service.project.audit.action.projectcreated\",\"category\":\"Projects\",\"categoryI18nKey\":\"bitbucket.service.audit.category.projects\"}}",
"original": "{\"affectedObjects\":[{\"id\":\"3\",\"name\":\"AT\",\"type\":\"PROJECT\"}],\"auditType\":{\"action\":\"Project deletion requested\",\"actionI18nKey\":\"bitbucket.service.project.audit.action.projectdeletionrequested\",\"area\":\"LOCAL_CONFIG_AND_ADMINISTRATION\",\"category\":\"Projects\",\"categoryI18nKey\":\"bitbucket.service.audit.category.projects\",\"level\":\"BASE\"},\"author\":{\"id\":\"2\",\"name\":\"admin\",\"type\":\"NORMAL\"},\"changedValues\":[],\"extraAttributes\":[{\"name\":\"target\",\"nameI18nKey\":\"bitbucket.audit.attribute.legacy.target\",\"value\":\"AT\"}],\"method\":\"Browser\",\"node\":\"8767044c-1b98-4d64-82db-ef29af8c3792\",\"source\":\"10.100.100.2\",\"system\":\"http://bitbucket.internal:7990\",\"timestamp\":{\"epochSecond\":1638036799,\"nano\":888000000},\"version\":\"1.0\"}",
"type": [
"creation"
"deletion"
]
},
"host": {
"architecture": "x86_64",
"containerized": false,
"hostname": "elastic-agent-45713",
"ip": [
"192.168.244.2",
"192.168.240.8"
],
"mac": [
"82-A2-D4-5B-A7-85",
"9E-8C-8A-A2-0F-DB"
],
"name": "elastic-agent-45713",
"os": {
"kernel": "5.15.0-156-generic",
"name": "Wolfi",
"platform": "wolfi",
"type": "linux",
"version": "20230201"
}
},
"input": {
"type": "httpjson"
"type": "log"
},
"log": {
"file": {
"path": "/tmp/service_logs/test-audit.log"
},
"offset": 0
},
"related": {
"hosts": [
Expand All @@ -83,11 +111,10 @@
},
"tags": [
"preserve_original_event",
"forwarded",
"bitbucket-audit"
],
"user": {
"id": "2",
"name": "admin"
}
}
}
63 changes: 45 additions & 18 deletions packages/atlassian_bitbucket/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ An example event for `audit` looks as following:

```json
{
"@timestamp": "2021-11-27T18:10:57.316Z",
"@timestamp": "2021-11-27T18:13:19.888Z",
"agent": {
"ephemeral_id": "c1c6859f-88f5-4ae8-ad40-5c0c9fe933d1",
"id": "82d0dfd8-3946-4ac0-a092-a9146a71e3f7",
"name": "docker-fleet-agent",
"ephemeral_id": "949c3cd9-59d0-4214-bd94-b4388d99ca39",
"id": "111e6217-e5c2-49d6-88df-a1a2f716685b",
"name": "elastic-agent-45713",
"type": "filebeat",
"version": "8.0.0-beta1"
"version": "8.19.4"
},
"bitbucket": {
"audit": {
Expand All @@ -68,43 +68,71 @@ An example event for `audit` looks as following:
],
"method": "Browser",
"type": {
"action": "Project created",
"actionI18nKey": "bitbucket.service.project.audit.action.projectcreated",
"action": "Project deletion requested",
"actionI18nKey": "bitbucket.service.project.audit.action.projectdeletionrequested",
"area": "LOCAL_CONFIG_AND_ADMINISTRATION",
"category": "Projects",
"categoryI18nKey": "bitbucket.service.audit.category.projects"
"categoryI18nKey": "bitbucket.service.audit.category.projects",
"level": "BASE"
}
}
},
"data_stream": {
"dataset": "atlassian_bitbucket.audit",
"namespace": "ep",
"namespace": "68281",
"type": "logs"
},
"ecs": {
"version": "8.11.0"
},
"elastic_agent": {
"id": "82d0dfd8-3946-4ac0-a092-a9146a71e3f7",
"id": "111e6217-e5c2-49d6-88df-a1a2f716685b",
"snapshot": false,
"version": "8.0.0-beta1"
"version": "8.19.4"
},
"event": {
"action": "bitbucket.service.project.audit.action.projectcreated",
"action": "bitbucket.service.project.audit.action.projectdeletionrequested",
"agent_id_status": "verified",
"category": [
"configuration"
],
"created": "2021-12-24T00:39:23.076Z",
"dataset": "atlassian_bitbucket.audit",
"ingested": "2021-12-24T00:39:24Z",
"ingested": "2025-10-05T12:01:16Z",
"kind": "event",
"original": "{\"affectedObjects\":[{\"id\":\"3\",\"name\":\"AT\",\"type\":\"PROJECT\"}],\"author\":{\"avatarUri\":\"\",\"id\":\"2\",\"name\":\"admin\",\"type\":\"NORMAL\",\"uri\":\"http://bitbucket.internal:7990/users/admin\"},\"changedValues\":[],\"extraAttributes\":[{\"name\":\"target\",\"nameI18nKey\":\"bitbucket.audit.attribute.legacy.target\",\"value\":\"AT\"}],\"method\":\"Browser\",\"node\":\"8767044c-1b98-4d64-82db-ef29af8c3792\",\"source\":\"10.100.100.2\",\"system\":\"http://bitbucket.internal:7990\",\"timestamp\":\"2021-11-27T18:10:57.316Z\",\"type\":{\"action\":\"Project created\",\"actionI18nKey\":\"bitbucket.service.project.audit.action.projectcreated\",\"category\":\"Projects\",\"categoryI18nKey\":\"bitbucket.service.audit.category.projects\"}}",
"original": "{\"affectedObjects\":[{\"id\":\"3\",\"name\":\"AT\",\"type\":\"PROJECT\"}],\"auditType\":{\"action\":\"Project deletion requested\",\"actionI18nKey\":\"bitbucket.service.project.audit.action.projectdeletionrequested\",\"area\":\"LOCAL_CONFIG_AND_ADMINISTRATION\",\"category\":\"Projects\",\"categoryI18nKey\":\"bitbucket.service.audit.category.projects\",\"level\":\"BASE\"},\"author\":{\"id\":\"2\",\"name\":\"admin\",\"type\":\"NORMAL\"},\"changedValues\":[],\"extraAttributes\":[{\"name\":\"target\",\"nameI18nKey\":\"bitbucket.audit.attribute.legacy.target\",\"value\":\"AT\"}],\"method\":\"Browser\",\"node\":\"8767044c-1b98-4d64-82db-ef29af8c3792\",\"source\":\"10.100.100.2\",\"system\":\"http://bitbucket.internal:7990\",\"timestamp\":{\"epochSecond\":1638036799,\"nano\":888000000},\"version\":\"1.0\"}",
"type": [
"creation"
"deletion"
]
},
"host": {
"architecture": "x86_64",
"containerized": false,
"hostname": "elastic-agent-45713",
"ip": [
"192.168.244.2",
"192.168.240.8"
],
"mac": [
"82-A2-D4-5B-A7-85",
"9E-8C-8A-A2-0F-DB"
],
"name": "elastic-agent-45713",
"os": {
"kernel": "5.15.0-156-generic",
"name": "Wolfi",
"platform": "wolfi",
"type": "linux",
"version": "20230201"
}
},
"input": {
"type": "httpjson"
"type": "log"
},
"log": {
"file": {
"path": "/tmp/service_logs/test-audit.log"
},
"offset": 0
},
"related": {
"hosts": [
Expand All @@ -126,7 +154,6 @@ An example event for `audit` looks as following:
},
"tags": [
"preserve_original_event",
"forwarded",
"bitbucket-audit"
],
"user": {
Expand Down
4 changes: 2 additions & 2 deletions packages/atlassian_bitbucket/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
format_version: "3.0.2"
name: atlassian_bitbucket
title: Atlassian Bitbucket
version: "2.5.0"
version: "2.6.0"
description: Collect logs from Atlassian Bitbucket with Elastic Agent.
type: integration
categories:
- security
- productivity_security
conditions:
kibana:
version: "^8.13.0 || ^9.0.0"
version: "^8.19.4 || ~9.0.7 || ^9.1.4"
icons:
- src: /img/bitbucket-logo.svg
title: Bitbucket Logo
Expand Down
Loading