Commit graph

11 commits

Author SHA1 Message Date
Tiago Vila Verde
931579bab9
[8.16] Backport: [eem] rename fields to snake case #195895 (#198501)
Backporting https://github.com/elastic/kibana/pull/195895 into 8.16.

---------

Co-authored-by: Kevin Lacabane <kevin.lacabane@elastic.co>
2024-10-31 22:22:48 +01:00
Tiago Vila Verde
90cff86879
[8.16] [EEM] Replace hashed ID with human readable ID (#193652) (#198494)
# Backport

This will backport the following commits from `main` to `8.16`:
 - [EEM] Replace hashed ID with human readable ID (#193652) (ae2c6ad3)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Milton
Hultgren","email":"milton.hultgren@elastic.co"},"sourceCommit":{"committedDate":"2024-10-18T14:42:38Z","message":"[EEM]
Replace hashed ID with human readable ID (#193652)\n\nThis PR turns the
`entity.id` field format from a hashed value to a\r\nhuman readable
string of the **values** found in the identity fields,\r\nsuch as
`my_host-my_cloud_zone` for the identity fields
`[host.name,\r\ncloud.availability_zone]`.\r\nThe order of the values is
based on the order in the identity
fields\r\nlist.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"ae2c6ad321f2b4318d4114c1309b4420861bcd29"},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[]}]
BACKPORT-->

Co-authored-by: Milton Hultgren <milton.hultgren@elastic.co>
2024-10-31 07:28:47 -05:00
Tiago Vila Verde
2bdf98242a
[8.16] [eem] use current user to delete indices (#195886) (#198492)
# Backport

This will backport the following commits from `main` to `8.16`:
 - [eem] use current user to delete indices (#195886) (9f291dc5)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Kevin
Lacabane","email":"kevin.lacabane@elastic.co"},"sourceCommit":{"committedDate":"2024-10-16T19:03:48Z","message":"[eem]
use current user to delete indices (#195886)\n\nWe were trying to
cleanup `.entities` indices with the system user that\r\ndoes not have
necessary privileges. This failed silently because
of\r\n`ignore_unavailable:
true`","sha":"9f291dc55ec4c82380b81aa2fb9d7a8d84a1ff22"},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[]}]
BACKPORT-->

Co-authored-by: Kevin Lacabane <kevin.lacabane@elastic.co>
2024-10-31 07:21:38 -05:00
Pablo Machado
256c93bff9
[8.16] [SecuritySolution] Fix Pagination should reset when a new filter is applied to the entity table (#198129) (#198322)
# Backport

This will backport the following commits from `main` to `8.16`:
- [[SecuritySolution] Fix Pagination should reset when a new filter is
applied to the entity table
(#198129)](https://github.com/elastic/kibana/pull/198129)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Pablo
Machado","email":"pablo.nevesmachado@elastic.co"},"sourceCommit":{"committedDate":"2024-10-30T12:28:10Z","message":"[SecuritySolution]
Fix Pagination should reset when a new filter is applied to the entity
table (#198129)\n\n## Summary\r\n\r\nFix \"Pagination should reset when
a new filter is applied to the entity\r\ntable\"\r\n* Extra changes: I
demoted some error logs to warning as part
of\r\n16357db1-5e77-4c7f-ae94-9371d71c4970\r\n\r\n\r\n###
How to test it?\r\n* Start kibana with data\r\n* Navigate to the
security solution / entity analytics dashboard\r\n* Start the entity
store\r\n* Navigate between pages and change the filter, sorting, and
query.","sha":"40edfe1496348997d4f4a48654882fd0dc1d1a85","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","Team:
SecuritySolution","Theme: entity_analytics","Feature:Entity
Analytics","Team:Entity
Analytics","v8.16.0","backport:version","v8.17.0"],"number":198129,"url":"https://github.com/elastic/kibana/pull/198129","mergeCommit":{"message":"[SecuritySolution]
Fix Pagination should reset when a new filter is applied to the entity
table (#198129)\n\n## Summary\r\n\r\nFix \"Pagination should reset when
a new filter is applied to the entity\r\ntable\"\r\n* Extra changes: I
demoted some error logs to warning as part
of\r\n16357db1-5e77-4c7f-ae94-9371d71c4970\r\n\r\n\r\n###
How to test it?\r\n* Start kibana with data\r\n* Navigate to the
security solution / entity analytics dashboard\r\n* Start the entity
store\r\n* Navigate between pages and change the filter, sorting, and
query.","sha":"40edfe1496348997d4f4a48654882fd0dc1d1a85"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198129","number":198129,"mergeCommit":{"message":"[SecuritySolution]
Fix Pagination should reset when a new filter is applied to the entity
table (#198129)\n\n## Summary\r\n\r\nFix \"Pagination should reset when
a new filter is applied to the entity\r\ntable\"\r\n* Extra changes: I
demoted some error logs to warning as part
of\r\n16357db1-5e77-4c7f-ae94-9371d71c4970\r\n\r\n\r\n###
How to test it?\r\n* Start kibana with data\r\n* Navigate to the
security solution / entity analytics dashboard\r\n* Start the entity
store\r\n* Navigate between pages and change the filter, sorting, and
query.","sha":"40edfe1496348997d4f4a48654882fd0dc1d1a85"}},{"branch":"8.16","label":"v8.16.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","labelRegex":"^v8.17.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/198315","number":198315,"state":"OPEN"}]}]
BACKPORT-->
2024-10-30 09:20:34 -05:00
Kibana Machine
ff7b33c65a
[8.x] [SecuritySolution] Load entity store indices from security solution data view (#195862) (#196209)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[SecuritySolution] Load entity store indices from security solution
data view (#195862)](https://github.com/elastic/kibana/pull/195862)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Pablo
Machado","email":"pablo.nevesmachado@elastic.co"},"sourceCommit":{"committedDate":"2024-10-14T20:56:58Z","message":"[SecuritySolution]
Load entity store indices from security solution data view
(#195862)\n\n## Summary\r\n\r\n* Update the Entity Store to retrieve
indices from the security solution\r\ndata view.\r\n* Create a new API
that updates all installed entity engine
indices\r\n(`api/entity_store/engines/apply_dataview_indices`)\r\n\r\n\r\n###
How to test it?\r\n* Install the entity store\r\n* Check if the
transform index has the security solutions data view\r\nindices\r\n*
Call `apply_dataview_indices` API; it should not return changes\r\n*
Update the security solution data view indices\r\n* Call
`apply_dataview_indices` API and if the API response contains
the\r\nupdated indices\r\n* Check if the transform index also got
updated\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"489c0901ffd335879d9652424ab15ef9f39cc4cb","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","v9.0.0","Team:
SecuritySolution","backport:prev-minor","Theme:
entity_analytics","Feature:Entity Analytics","Team:Entity
Analytics"],"title":"[SecuritySolution] Load entity store indices from
security solution data
view","number":195862,"url":"https://github.com/elastic/kibana/pull/195862","mergeCommit":{"message":"[SecuritySolution]
Load entity store indices from security solution data view
(#195862)\n\n## Summary\r\n\r\n* Update the Entity Store to retrieve
indices from the security solution\r\ndata view.\r\n* Create a new API
that updates all installed entity engine
indices\r\n(`api/entity_store/engines/apply_dataview_indices`)\r\n\r\n\r\n###
How to test it?\r\n* Install the entity store\r\n* Check if the
transform index has the security solutions data view\r\nindices\r\n*
Call `apply_dataview_indices` API; it should not return changes\r\n*
Update the security solution data view indices\r\n* Call
`apply_dataview_indices` API and if the API response contains
the\r\nupdated indices\r\n* Check if the transform index also got
updated\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"489c0901ffd335879d9652424ab15ef9f39cc4cb"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195862","number":195862,"mergeCommit":{"message":"[SecuritySolution]
Load entity store indices from security solution data view
(#195862)\n\n## Summary\r\n\r\n* Update the Entity Store to retrieve
indices from the security solution\r\ndata view.\r\n* Create a new API
that updates all installed entity engine
indices\r\n(`api/entity_store/engines/apply_dataview_indices`)\r\n\r\n\r\n###
How to test it?\r\n* Install the entity store\r\n* Check if the
transform index has the security solutions data view\r\nindices\r\n*
Call `apply_dataview_indices` API; it should not return changes\r\n*
Update the security solution data view indices\r\n* Call
`apply_dataview_indices` API and if the API response contains
the\r\nupdated indices\r\n* Check if the transform index also got
updated\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"489c0901ffd335879d9652424ab15ef9f39cc4cb"}}]}]
BACKPORT-->

Co-authored-by: Pablo Machado <pablo.nevesmachado@elastic.co>
2024-10-15 06:14:35 -05:00
Kibana Machine
365bb613db
[8.x] [eem] remove history transforms (#193999) (#195680)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[eem] remove history transforms
(#193999)](https://github.com/elastic/kibana/pull/193999)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Kevin
Lacabane","email":"kevin.lacabane@elastic.co"},"sourceCommit":{"committedDate":"2024-10-09T21:15:33Z","message":"[eem]
remove history transforms (#193999)\n\n### Summary\r\n\r\nRemove history
and backfill transforms, leaving latest transform
in\r\nplace.\r\n\r\nNotable changes to latest transform:\r\n- it does
not read from history output anymore but source indices\r\ndefined on
the definition\r\n- it defines a `latest.lookbackPeriod` to limit the
amount of data\r\ningested, which defaults to 24h\r\n- each metadata
aggregation now accepts a\r\n`metadata.aggregation.lookbackPeriod` which
defaults to the\r\n`latest.lookbackPeriod`\r\n-
`entity.firstSeenTimestamp` is removed. this should be temporary
until\r\nwe have a solution
for\r\nhttps://github.com/elastic/elastic-entity-model/issues/174\r\n-
latest metrics used to get the latest pre-computed value from
history\r\ndata, but is it now aggregating over the `lookbackPeriod` in
the source\r\nindices (which can be filtered down with
`metrics.filter`)\r\n- `latest` block on the entity definition is now
mandatory\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Mark Hopkin
<mark.hopkin@elastic.co>","sha":"8f8e9883e0a8e78a632418a0677980f758450351","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Feature:EEM","team:obs-entities"],"title":"[eem]
remove history
transforms","number":193999,"url":"https://github.com/elastic/kibana/pull/193999","mergeCommit":{"message":"[eem]
remove history transforms (#193999)\n\n### Summary\r\n\r\nRemove history
and backfill transforms, leaving latest transform
in\r\nplace.\r\n\r\nNotable changes to latest transform:\r\n- it does
not read from history output anymore but source indices\r\ndefined on
the definition\r\n- it defines a `latest.lookbackPeriod` to limit the
amount of data\r\ningested, which defaults to 24h\r\n- each metadata
aggregation now accepts a\r\n`metadata.aggregation.lookbackPeriod` which
defaults to the\r\n`latest.lookbackPeriod`\r\n-
`entity.firstSeenTimestamp` is removed. this should be temporary
until\r\nwe have a solution
for\r\nhttps://github.com/elastic/elastic-entity-model/issues/174\r\n-
latest metrics used to get the latest pre-computed value from
history\r\ndata, but is it now aggregating over the `lookbackPeriod` in
the source\r\nindices (which can be filtered down with
`metrics.filter`)\r\n- `latest` block on the entity definition is now
mandatory\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Mark Hopkin
<mark.hopkin@elastic.co>","sha":"8f8e9883e0a8e78a632418a0677980f758450351"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193999","number":193999,"mergeCommit":{"message":"[eem]
remove history transforms (#193999)\n\n### Summary\r\n\r\nRemove history
and backfill transforms, leaving latest transform
in\r\nplace.\r\n\r\nNotable changes to latest transform:\r\n- it does
not read from history output anymore but source indices\r\ndefined on
the definition\r\n- it defines a `latest.lookbackPeriod` to limit the
amount of data\r\ningested, which defaults to 24h\r\n- each metadata
aggregation now accepts a\r\n`metadata.aggregation.lookbackPeriod` which
defaults to the\r\n`latest.lookbackPeriod`\r\n-
`entity.firstSeenTimestamp` is removed. this should be temporary
until\r\nwe have a solution
for\r\nhttps://github.com/elastic/elastic-entity-model/issues/174\r\n-
latest metrics used to get the latest pre-computed value from
history\r\ndata, but is it now aggregating over the `lookbackPeriod` in
the source\r\nindices (which can be filtered down with
`metrics.filter`)\r\n- `latest` block on the entity definition is now
mandatory\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Mark Hopkin
<mark.hopkin@elastic.co>","sha":"8f8e9883e0a8e78a632418a0677980f758450351"}}]}]
BACKPORT-->

Co-authored-by: Kevin Lacabane <kevin.lacabane@elastic.co>
2024-10-10 00:57:35 +02:00
Kibana Machine
ef6f776b12
[8.x] [Inventory] Add k8s fields to Service entity type (#195407) (#195601)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Inventory] Add k8s fields to Service entity type
(#195407)](https://github.com/elastic/kibana/pull/195407)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Cauê
Marcondes","email":"55978943+cauemarcondes@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-09T13:44:12Z","message":"[Inventory]
Add k8s fields to Service entity type (#195407)\n\ncloses
https://github.com/elastic/kibana/issues/195244\r\n\r\n- Removed metrics
definition from service, host and container\r\n- Removed `metrics-apm`
index patterns from the service definition\r\nbecause k8s fields are not
available on that scope.\r\n- Added `traces-apm*` index pattern on the
service
definition\r\n\r\n\r\nhttps://github.com/user-attachments/assets/6c6b4fd6-817a-494e-8649-e2d76a8e98e3","sha":"cc7fdba1422f2717984b958509be13abc820b15b","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:cloud-deploy","ci:project-deploy-observability","Team:obs-ux-infra_services","v8.16.0","Feature:EEM"],"title":"[Inventory]
Add k8s fields to Service entity
type","number":195407,"url":"https://github.com/elastic/kibana/pull/195407","mergeCommit":{"message":"[Inventory]
Add k8s fields to Service entity type (#195407)\n\ncloses
https://github.com/elastic/kibana/issues/195244\r\n\r\n- Removed metrics
definition from service, host and container\r\n- Removed `metrics-apm`
index patterns from the service definition\r\nbecause k8s fields are not
available on that scope.\r\n- Added `traces-apm*` index pattern on the
service
definition\r\n\r\n\r\nhttps://github.com/user-attachments/assets/6c6b4fd6-817a-494e-8649-e2d76a8e98e3","sha":"cc7fdba1422f2717984b958509be13abc820b15b"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195407","number":195407,"mergeCommit":{"message":"[Inventory]
Add k8s fields to Service entity type (#195407)\n\ncloses
https://github.com/elastic/kibana/issues/195244\r\n\r\n- Removed metrics
definition from service, host and container\r\n- Removed `metrics-apm`
index patterns from the service definition\r\nbecause k8s fields are not
available on that scope.\r\n- Added `traces-apm*` index pattern on the
service
definition\r\n\r\n\r\nhttps://github.com/user-attachments/assets/6c6b4fd6-817a-494e-8649-e2d76a8e98e3","sha":"cc7fdba1422f2717984b958509be13abc820b15b"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2024-10-09 17:45:18 +02:00
Kibana Machine
2ae4759ba8
[8.x] [EEM] Add built in definitions for hosts and containers (#193157) (#194921)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[EEM] Add built in definitions for hosts and containers
(#193157)](https://github.com/elastic/kibana/pull/193157)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Milton
Hultgren","email":"milton.hultgren@elastic.co"},"sourceCommit":{"committedDate":"2024-09-18T14:03:17Z","message":"[EEM]
Add built in definitions for hosts and containers (#193157)\n\n###
Summary\r\n\r\nThis PR adds built in definitions for `hosts` and
`containers` based on\r\nECS data.\r\n\r\n### How to test\r\n\r\n1.
Check out this branch of Kibana\r\n2. Start ES and Kibana, verify that
start up works and that the two\r\ndefinitions are installed (by calling
`GET\r\n/internal/entities/definition` or checking that the transforms
are\r\ninstalled).\r\n3. Ingest some data for each definition to work
with, verify that you\r\nget data in `entities-host-*` and
`entities-container-*` and that the\r\ndata matches the expected shape
(metadata and
metrics[1])\r\n\r\n\r\n[[1]](https://github.com/elastic/kibana/pull/193157#issuecomment-2355609821)","sha":"26a50f71562ad713903e8543b7793f482f717935","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Feature:EEM"],"title":"[EEM]
Add built in definitions for hosts and
containers","number":193157,"url":"https://github.com/elastic/kibana/pull/193157","mergeCommit":{"message":"[EEM]
Add built in definitions for hosts and containers (#193157)\n\n###
Summary\r\n\r\nThis PR adds built in definitions for `hosts` and
`containers` based on\r\nECS data.\r\n\r\n### How to test\r\n\r\n1.
Check out this branch of Kibana\r\n2. Start ES and Kibana, verify that
start up works and that the two\r\ndefinitions are installed (by calling
`GET\r\n/internal/entities/definition` or checking that the transforms
are\r\ninstalled).\r\n3. Ingest some data for each definition to work
with, verify that you\r\nget data in `entities-host-*` and
`entities-container-*` and that the\r\ndata matches the expected shape
(metadata and
metrics[1])\r\n\r\n\r\n[[1]](https://github.com/elastic/kibana/pull/193157#issuecomment-2355609821)","sha":"26a50f71562ad713903e8543b7793f482f717935"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193157","number":193157,"mergeCommit":{"message":"[EEM]
Add built in definitions for hosts and containers (#193157)\n\n###
Summary\r\n\r\nThis PR adds built in definitions for `hosts` and
`containers` based on\r\nECS data.\r\n\r\n### How to test\r\n\r\n1.
Check out this branch of Kibana\r\n2. Start ES and Kibana, verify that
start up works and that the two\r\ndefinitions are installed (by calling
`GET\r\n/internal/entities/definition` or checking that the transforms
are\r\ninstalled).\r\n3. Ingest some data for each definition to work
with, verify that you\r\nget data in `entities-host-*` and
`entities-container-*` and that the\r\ndata matches the expected shape
(metadata and
metrics[1])\r\n\r\n\r\n[[1]](https://github.com/elastic/kibana/pull/193157#issuecomment-2355609821)","sha":"26a50f71562ad713903e8543b7793f482f717935"}}]}]
BACKPORT-->

Co-authored-by: Milton Hultgren <milton.hultgren@elastic.co>
2024-10-07 12:35:33 -05:00
Kibana Machine
d6f5f34dff
[8.x] [Infra][ECO] Adding summary API (#194612) (#194916)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Infra][ECO] Adding summary API
(#194612)](https://github.com/elastic/kibana/pull/194612)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Cauê
Marcondes","email":"55978943+cauemarcondes@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-04T08:46:54Z","message":"[Infra][ECO]
Adding summary API (#194612)\n\ncloses
https://github.com/elastic/kibana/issues/193701\r\n\r\nThis PR does a
few things:\r\n- Adds a new API endpoint on infra to fetch an entity
summary:\r\n`/api/infra/entities/{entityType}/{entityId}/summary`. It
fetches the\r\nlatest EEM index filtering by entity.type(host |
container) and\r\ndepending on the entity type host.name or
container.id. And it returns\r\nthe following payload:\r\n```\r\n{\r\n
\"sourceDataStreams\": [\r\n \"logs\",\r\n \"metrics\"\r\n ],\r\n
\"entityId\": \"caues-mbp\",\r\n \"entityType\":
\"host\"\r\n}\r\n```\r\n- Fix a problem on the `Service` entity
definition removing the\r\n`datastream.type` and moving it to
`source_data_stream.type` due to ECS\r\nconflicts.\r\n- Moves some
common field definitions to **observability-shared**\r\nplugin, and
updated APM and Inventory
plugin.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a91d00731ae732c3bb2d370651048d94dd8adc2b","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","v8.16.0"],"title":"[Infra][ECO]
Adding summary
API","number":194612,"url":"https://github.com/elastic/kibana/pull/194612","mergeCommit":{"message":"[Infra][ECO]
Adding summary API (#194612)\n\ncloses
https://github.com/elastic/kibana/issues/193701\r\n\r\nThis PR does a
few things:\r\n- Adds a new API endpoint on infra to fetch an entity
summary:\r\n`/api/infra/entities/{entityType}/{entityId}/summary`. It
fetches the\r\nlatest EEM index filtering by entity.type(host |
container) and\r\ndepending on the entity type host.name or
container.id. And it returns\r\nthe following payload:\r\n```\r\n{\r\n
\"sourceDataStreams\": [\r\n \"logs\",\r\n \"metrics\"\r\n ],\r\n
\"entityId\": \"caues-mbp\",\r\n \"entityType\":
\"host\"\r\n}\r\n```\r\n- Fix a problem on the `Service` entity
definition removing the\r\n`datastream.type` and moving it to
`source_data_stream.type` due to ECS\r\nconflicts.\r\n- Moves some
common field definitions to **observability-shared**\r\nplugin, and
updated APM and Inventory
plugin.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a91d00731ae732c3bb2d370651048d94dd8adc2b"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194612","number":194612,"mergeCommit":{"message":"[Infra][ECO]
Adding summary API (#194612)\n\ncloses
https://github.com/elastic/kibana/issues/193701\r\n\r\nThis PR does a
few things:\r\n- Adds a new API endpoint on infra to fetch an entity
summary:\r\n`/api/infra/entities/{entityType}/{entityId}/summary`. It
fetches the\r\nlatest EEM index filtering by entity.type(host |
container) and\r\ndepending on the entity type host.name or
container.id. And it returns\r\nthe following payload:\r\n```\r\n{\r\n
\"sourceDataStreams\": [\r\n \"logs\",\r\n \"metrics\"\r\n ],\r\n
\"entityId\": \"caues-mbp\",\r\n \"entityType\":
\"host\"\r\n}\r\n```\r\n- Fix a problem on the `Service` entity
definition removing the\r\n`datastream.type` and moving it to
`source_data_stream.type` due to ECS\r\nconflicts.\r\n- Moves some
common field definitions to **observability-shared**\r\nplugin, and
updated APM and Inventory
plugin.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a91d00731ae732c3bb2d370651048d94dd8adc2b"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2024-10-04 05:28:20 -05:00
Kibana Machine
5c4afedd16
[8.x] [Inventory] Removes environment from Service type identity fields (#194451) (#194688)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Inventory] Removes environment from Service type identity fields
(#194451)](https://github.com/elastic/kibana/pull/194451)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Cauê
Marcondes","email":"55978943+cauemarcondes@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-02T11:51:40Z","message":"[Inventory]
Removes environment from Service type identity fields (#194451)\n\nWhen
we started working with EEM, we were focusing on the APM UI
pages,\r\nthus we added the service environment as an identifier field.
Now that\r\nwe are moving away from it, we no longer need it listed on
the Service\r\ntype definition.\r\n\r\n<img width=\"1579\"
alt=\"Screenshot 2024-09-30 at 16 29
02\"\r\nsrc=\"https://github.com/user-attachments/assets/1b8f8835-f083-44fc-b7f8-2142c48ed8e3\">","sha":"229b574aefa36370e889e0a080dfe79ff0c651d6","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","v8.16.0"],"title":"[Inventory]
Removes environment from Service type identity
fields","number":194451,"url":"https://github.com/elastic/kibana/pull/194451","mergeCommit":{"message":"[Inventory]
Removes environment from Service type identity fields (#194451)\n\nWhen
we started working with EEM, we were focusing on the APM UI
pages,\r\nthus we added the service environment as an identifier field.
Now that\r\nwe are moving away from it, we no longer need it listed on
the Service\r\ntype definition.\r\n\r\n<img width=\"1579\"
alt=\"Screenshot 2024-09-30 at 16 29
02\"\r\nsrc=\"https://github.com/user-attachments/assets/1b8f8835-f083-44fc-b7f8-2142c48ed8e3\">","sha":"229b574aefa36370e889e0a080dfe79ff0c651d6"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194451","number":194451,"mergeCommit":{"message":"[Inventory]
Removes environment from Service type identity fields (#194451)\n\nWhen
we started working with EEM, we were focusing on the APM UI
pages,\r\nthus we added the service environment as an identifier field.
Now that\r\nwe are moving away from it, we no longer need it listed on
the Service\r\ntype definition.\r\n\r\n<img width=\"1579\"
alt=\"Screenshot 2024-09-30 at 16 29
02\"\r\nsrc=\"https://github.com/user-attachments/assets/1b8f8835-f083-44fc-b7f8-2142c48ed8e3\">","sha":"229b574aefa36370e889e0a080dfe79ff0c651d6"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2024-10-02 08:35:23 -05:00
Tiago Vila Verde
0b4ac42fbb
[8.x] [Entity Manager] Extract the entity manager out of Observability solution (#190304) (#193858)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Entity Manager] Extract the entity manager out of Observability
solution (#190304)](https://github.com/elastic/kibana/pull/190304)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Tiago Vila
Verde","email":"tiago.vilaverde@elastic.co"},"sourceCommit":{"committedDate":"2024-09-16T12:07:03Z","message":"[Entity
Manager] Extract the entity manager out of Observability solution
(#190304)\n\n## Summary\r\n\r\nMoving the Entity Manager out of
Observability and into a Kibana plugin\r\nas per
[this\r\nticket](https://github.com/elastic/security-team/issues/10156)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"c26ee22db69059d1908cb7bf3982db13a354b77a","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","team:obs-entities"],"number":190304,"url":"https://github.com/elastic/kibana/pull/190304","mergeCommit":{"message":"[Entity
Manager] Extract the entity manager out of Observability solution
(#190304)\n\n## Summary\r\n\r\nMoving the Entity Manager out of
Observability and into a Kibana plugin\r\nas per
[this\r\nticket](https://github.com/elastic/security-team/issues/10156)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"c26ee22db69059d1908cb7bf3982db13a354b77a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/190304","number":190304,"mergeCommit":{"message":"[Entity
Manager] Extract the entity manager out of Observability solution
(#190304)\n\n## Summary\r\n\r\nMoving the Entity Manager out of
Observability and into a Kibana plugin\r\nas per
[this\r\nticket](https://github.com/elastic/security-team/issues/10156)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"c26ee22db69059d1908cb7bf3982db13a354b77a"}}]}]
BACKPORT-->
2024-09-24 18:24:09 +02:00