Skip to content

[Cisco IOS] Adding Timezone Map advanced option#6356

Merged
P1llus merged 9 commits intoelastic:mainfrom
P1llus:package_cisco_ios_cleanup
Jun 1, 2023
Merged

[Cisco IOS] Adding Timezone Map advanced option#6356
P1llus merged 9 commits intoelastic:mainfrom
P1llus:package_cisco_ios_cleanup

Conversation

@P1llus
Copy link
Copy Markdown
Member

@P1llus P1llus commented May 29, 2023

What does this PR do?

This adds the possibility for larger deployments to support multiple timezones per integration. The main issue is that the format Cisco IOS logs timezones is not supported by common programming languages (AEST etc, rather than +0200), so this PR adds the possibility to create a map of all the timezones they want to support.

This is simply an extension to tz_offset, and is most likely not useful in most scenarios, so normal users will simply continue to use tz_offset instead.

Added system tests for all possible scenarios as well (all the different tz combinations).

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.

@P1llus P1llus requested a review from a team as a code owner May 29, 2023 09:51
@elasticmachine
Copy link
Copy Markdown

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@elasticmachine
Copy link
Copy Markdown

elasticmachine commented May 29, 2023

💚 Build Succeeded

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

Expand to view the summary

Build stats

  • Start Time: 2023-06-01T13:34:29.498+0000

  • Duration: 16 min 53 sec

Test stats 🧪

Test Results
Failed 0
Passed 12
Skipped 0
Total 12

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link
Copy Markdown

elasticmachine commented May 29, 2023

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (1/1) 💚
Files 100.0% (1/1) 💚
Classes 100.0% (1/1) 💚
Methods 100.0% (15/15) 💚
Lines 90.828% (307/338)
Conditionals 100.0% (0/0) 💚

Copy link
Copy Markdown
Contributor

@kcreddy kcreddy left a comment

Choose a reason for hiding this comment

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

LGTM

P1llus and others added 2 commits June 1, 2023 15:09
Co-authored-by: Chema Martínez <chema.martinez@elastic.co>
Co-authored-by: Chema Martínez <chema.martinez@elastic.co>
@P1llus P1llus merged commit 71be98f into elastic:main Jun 1, 2023
@elasticmachine
Copy link
Copy Markdown

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

sodhikirti07 pushed a commit that referenced this pull request Jun 15, 2023
* [Cisco IOS] Adding Timezone Map advanced option, and cleaning up pipeline a bit

* changelog

* slight modification to ensure it continues if tz_offset does not exist

* modified painless slightly to fix typo

* adding TZ Map to all input types

* Update packages/cisco_ios/_dev/build/docs/README.md

Co-authored-by: Chema Martínez <chema.martinez@elastic.co>

* Update packages/cisco_ios/docs/README.md

Co-authored-by: Chema Martínez <chema.martinez@elastic.co>

* no need to bump version higher anymore, as no dashboards

---------

Co-authored-by: Chema Martínez <chema.martinez@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Integration:cisco_ios Cisco IOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants