Skip to content

[cisco_ise] fix data purge timezone detection - #17005

Merged
taylor-swanson merged 7 commits into
elastic:mainfrom
ash-darin:patch-1
Jan 26, 2026
Merged

[cisco_ise] fix data purge timezone detection#17005
taylor-swanson merged 7 commits into
elastic:mainfrom
ash-darin:patch-1

Conversation

@ash-darin

@ash-darin ash-darin commented Jan 20, 2026

Copy link
Copy Markdown
Contributor
  • Bug

Proposed commit message

All pipelines except pipeline_monitoring_data_purge_audit subpipline extract the timezone of the event to event.timezone. (Compare:

- "^%{TIMESTAMP_ISO8601:_tmp.timestamp} %{ISO8601_TIMEZONE:event.timezone} %{DATA:event.sequence:long} %{DATA:cisco_ise.log.message.code} %{DATA:log.syslog.severity.name} %{DATA:cisco_ise.log.message.description}, %{GREEDYDATA:cisco_ise.log.log_details_raw},"
)

If this is not done, the timestamp will not be parsed correctly by the following logic. This PR brings the pipeline in line with all other pipelines.

Checklist

  • [y] I have reviewed tips for building integrations and this pull request is aligned with them.
  • [y] I have added an entry to my package's changelog.yml file.

Author's Checklist

  • Compare this to handling in all other subpipelines

How to test this PR locally

I added a testcase with a diverging timezone. Other than that you should check your installation for

cisco_ise.log.category.name: CISE_MONITORING_DATA_PURGE_AUDIT

field: message
patterns:
- '%{TIMEONLYSTAMP_ISO8601:_tmp.timestamp} %{ISO8601_TIMEZONE:_tmp.timezone} %{DATA:event.sequence:long} %{DATA:log.syslog.severity.name} %{DATA:cisco_ise.log.message.description}, %{GREEDYDATA:cisco_ise.log.log_details_raw},'
- '%{TIMEONLYSTAMP_ISO8601:_tmp.timestamp} %{ISO8601_TIMEZONE:event.timezone} %{DATA:event.sequence:long} %{DATA:log.syslog.severity.name} %{DATA:cisco_ise.log.message.description}, %{GREEDYDATA:cisco_ise.log.log_details_raw},'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is event.timezone in all other pipelines.

@ash-darin
ash-darin marked this pull request as ready for review January 20, 2026 13:30
@ash-darin
ash-darin requested a review from a team as a code owner January 20, 2026 13:30
@andrewkroh andrewkroh added the Team:Integration-Experience Security Integrations Integration Experience [elastic/integration-experience] label Jan 20, 2026
@elasticmachine

Copy link
Copy Markdown

Pinging @elastic/integration-experience (Team:Integration-Experience)

@taylor-swanson

Copy link
Copy Markdown
Contributor

Change looks fine to me. I went ahead and fixed up the changelog and manifest file, and also regenerated the test expected files. As a side note, some of the timestamps in the logs don't have a year, so whenever we move to a new year, a lot of those timestamps in the expected files will change (2025 -> 2026).

@taylor-swanson

Copy link
Copy Markdown
Contributor

/test

@taylor-swanson taylor-swanson added the bugfix Pull request that fixes a bug issue label Jan 26, 2026
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@elasticmachine

Copy link
Copy Markdown

💚 Build Succeeded

@taylor-swanson
taylor-swanson merged commit bfe6514 into elastic:main Jan 26, 2026
8 checks passed
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Package cisco_ise - 1.31.2 containing this change is available at https://epr.elastic.co/package/cisco_ise/1.31.2/

@ash-darin
ash-darin deleted the patch-1 branch January 28, 2026 09:46
jakubgalecki0 pushed a commit to jakubgalecki0/integrations that referenced this pull request Feb 19, 2026
- Fix handling of time zone in data purge pipeline
- Add test case with diverging time zone
- Regenerate test expected files, updated year to 2026 for original timestamps lacking a year 

---------

Co-authored-by: Taylor Swanson <taylor.swanson@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes a bug issue Integration:cisco_ise Cisco ISE Team:Integration-Experience Security Integrations Integration Experience [elastic/integration-experience]

4 participants