Skip to content

[cisco_ios] fix timezone with offset parsing #9890

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
May 16, 2024

Conversation

pkoutsovasilis
Copy link
Contributor

Proposed commit message

This PR fixes parsing issues with syslog messages that contain a timezone with offset in their timestamp

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

N/A

How to test this PR locally

elastic-package test pipeline -v

Related issues

Screenshots

N/A

@pkoutsovasilis pkoutsovasilis force-pushed the pkoutsovasilis/fix_cisco_ios_tz branch from 3cf829f to 3ed6d63 Compare May 16, 2024 10:14
@pkoutsovasilis pkoutsovasilis marked this pull request as ready for review May 16, 2024 10:14
@pkoutsovasilis pkoutsovasilis requested a review from a team as a code owner May 16, 2024 10:14
@pkoutsovasilis pkoutsovasilis self-assigned this May 16, 2024
@pkoutsovasilis pkoutsovasilis added bug Something isn't working, use only for issues Integration:cisco_ios Cisco IOS Team:Security-Deployment and Devices Deployment and Devices Security team [elastic/sec-deployment-and-devices] labels May 16, 2024
@elasticmachine
Copy link

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

@elasticmachine
Copy link

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@elasticmachine
Copy link

💚 Build Succeeded

cc @pkoutsovasilis

Copy link

@pkoutsovasilis pkoutsovasilis merged commit 4c5593e into main May 16, 2024
@pkoutsovasilis pkoutsovasilis deleted the pkoutsovasilis/fix_cisco_ios_tz branch May 16, 2024 10:43
@@ -187,6 +187,48 @@
"preserve_original_event"
]
},
{
"@timestamp": "2024-05-06T16:13:09.123Z",
Copy link
Contributor

@taylor-swanson taylor-swanson May 16, 2024

Choose a reason for hiding this comment

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

I didn't get a chance to drop in a comment before this merged, but this produced the wrong time?

Shouldn't it be 15:13:09 since the original timestamp was 16:13:09 but had a timezone of UTC+1?

Copy link
Contributor Author

@pkoutsovasilis pkoutsovasilis May 16, 2024

Choose a reason for hiding this comment

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

it should! nice catch, another PR is incoming 🥲

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working, use only for issues 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.

4 participants