Skip to content

cisco_ios: fix handling of timezone configurations #9442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

efd6
Copy link
Contributor

@efd6 efd6 commented Mar 26, 2024

Proposed commit message

The current code assumes that the only way that event.timezone can be set is from within the ingest pipeline. This is not the case since it can be obtained from the system TZ env var. So do not block setting the timezone from the tz_config value if event.timezone is already set, but do set event.timezone to UTC if it is missing as a fallback.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@efd6 efd6 added Integration:cisco_ios Cisco IOS bugfix Pull request that fixes a bug issue Team:Security-Deployment and Devices Deployment and Devices Security team [elastic/sec-deployment-and-devices] labels Mar 26, 2024
@efd6 efd6 self-assigned this Mar 26, 2024
The current code assumes that the only way that event.timezone can be
set is from within the ingest pipeline. This is not the case since it
can be obtained from the system TZ env var. So do not block setting the
timezone from the tz_config value if event.timezone is already set, but
do set event.timezone to UTC if it is missing as a fallback.
@efd6 efd6 force-pushed the s4545-cisco_ios branch from 80460d6 to e8a370d Compare March 26, 2024 01:24
@elasticmachine
Copy link

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@elasticmachine
Copy link

💚 Build Succeeded

cc @efd6

Copy link

@efd6 efd6 marked this pull request as ready for review March 26, 2024 01:43
@efd6 efd6 requested a review from a team as a code owner March 26, 2024 01:43
@elasticmachine
Copy link

Pinging @elastic/sec-deployment-and-devices (Team:Security-Deployment and Devices)

Copy link
Contributor

@pkoutsovasilis pkoutsovasilis left a comment

Choose a reason for hiding this comment

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

LGTM

@efd6 efd6 merged commit 2fe6ad9 into elastic:main Mar 26, 2024
@elasticmachine
Copy link

Package cisco_ios - 1.26.2 containing this change is available at https://epr.elastic.co/search?package=cisco_ios

@efd6 efd6 deleted the s4545-cisco_ios branch February 5, 2025 22:02
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_ios Cisco IOS Team:Security-Deployment and Devices Deployment and Devices Security team [elastic/sec-deployment-and-devices]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants