Skip to content
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

[cisco_ios] Add syslog header and timestamp parsing #2475

Merged
merged 2 commits into from
Jan 10, 2022

Conversation

andrewkroh
Copy link
Member

@andrewkroh andrewkroh commented Jan 6, 2022

What does this PR do?

Improve Cisco IOS handling for syslog data. Previously the @timestamp value was not being set from the timestamp in log.

I tested with various time configurations. My preferred format is service timestamps log datetime msec year show-timezone.

Fixes #2474

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.

Related issues

@elasticmachine
Copy link

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

@elasticmachine
Copy link

elasticmachine commented Jan 6, 2022

💚 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: 2022-01-10T14:32:57.342+0000

  • Duration: 16 min 33 sec

  • Commit: 0fb805b

Test stats 🧪

Test Results
Failed 0
Passed 9
Skipped 0
Total 9

🤖 GitHub comments

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

  • /test : Re-trigger the build.

Improve Cisco IOS handling for syslog data. Previously the `@timestamp` value was not being set from the timestamp in log.

I tested with various time configurations. My preferred format is `service timestamps log datetime msec year show-timezone`.

Fixes elastic#2474
@andrewkroh andrewkroh requested a review from a team January 7, 2022 01:22
]
},
{
"@timestamp": "2022-01-16T22:11:43.000Z",
Copy link
Member Author

Choose a reason for hiding this comment

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

This value is wrong and I have created an issue with Elasticsearch to investigate. elastic/elasticsearch#82370

Copy link
Member Author

Choose a reason for hiding this comment

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

It only affects users if they do not specify a year in their Cisco dates. I don't think this should hold up the PR.

@andrewkroh andrewkroh requested a review from efd6 January 10, 2022 14:40
Copy link
Contributor

@efd6 efd6 left a comment

Choose a reason for hiding this comment

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

LGTM

@andrewkroh andrewkroh merged commit d0a96ea into elastic:master Jan 10, 2022
eyalkraft pushed a commit to build-security/integrations that referenced this pull request Mar 30, 2022
Improve Cisco IOS handling for syslog data. Previously the `@timestamp` value was not being set from the timestamp in log.

I tested with various time configurations. My preferred format is `service timestamps log datetime msec year show-timezone`.

Fixes elastic#2474
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Integration:Cisco
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cisco_ios] Pipeline errors handling syslog data
3 participants