Repository navigation
[snowflake] Initial release with login_history, sessions, and grants_to_users Data Streams - #21885
Conversation
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
Elastic Docs Style Checker (Vale)Summary: 2 warnings, 7 suggestions found
|
| File | Line | Rule | Message |
|---|---|---|---|
| packages/snowflake/_dev/build/docs/README.md | 75 | Elastic.MenuArrowsBold | Use '→' to separate menu items, not '' or '='. Example: Select Manage index → Add lifecycle policy. |
| packages/snowflake/_dev/build/docs/README.md | 75 | Elastic.MenuArrows | Use '→' to separate menu items, not '' or '='. Example: Select Manage index → Add lifecycle policy. |
💡 Suggestions (7): Optional style improvements. Apply when helpful.
| File | Line | Rule | Message |
|---|---|---|---|
| packages/snowflake/_dev/build/docs/README.md | 86 | Elastic.Semicolons | Use semicolons sparingly. Consider splitting the sentence or using a comma or conjunction. |
| packages/snowflake/_dev/build/docs/README.md | 91 | Elastic.WordChoice | Consider using 'can, might' instead of 'may', unless the term is in the UI. |
| packages/snowflake/_dev/build/docs/README.md | 145 | Elastic.Semicolons | Use semicolons sparingly. Consider splitting the sentence or using a comma or conjunction. |
| packages/snowflake/changelog.yml | 1 | Elastic.Versions | Use 'later versions' instead of 'newer versions' when referring to versions. |
| packages/snowflake/data_stream/grants_to_users/manifest.yml | 31 | Elastic.WordChoice | Consider using 'can, might' instead of 'may', unless the term is in the UI. |
| packages/snowflake/data_stream/login_history/manifest.yml | 31 | Elastic.WordChoice | Consider using 'can, might' instead of 'may', unless the term is in the UI. |
| packages/snowflake/data_stream/sessions/manifest.yml | 31 | Elastic.WordChoice | Consider using 'can, might' instead of 'may', unless the term is in the UI. |
The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.
b1eed21 to
fd579ea
Compare
|
@vera-review-bot review |
🚀 Benchmarks reportTo see the full report comment with |
74f36db to
158627f
Compare
1. Add fingerprint in pipeline. 2. Add system test config with batch size 3. 3. Add timezone utc in cel programs. 4. Update activity chart in dashboard.
| ], | ||
| "index": "snowflake-login-activity-esql", | ||
| "query": { | ||
| "esql": "FROM logs-snowflake.login_history-*\n| EVAL day_of_week = CONCAT(DATE_FORMAT(\"e\", @timestamp), \" \", DATE_FORMAT(\"EEE\", @timestamp)),\n hour_of_day = DATE_EXTRACT(\"hour_of_day\", @timestamp)\n| STATS logins = COUNT(*) BY day_of_week, hour_of_day" |
There was a problem hiding this comment.
Severity: 🔵 Low confidence: medium path: packages/snowflake/kibana/dashboard/snowflake-a721edd7-4792-4460-b4a1-fe27c8394838.json:1097
The heatmap's hour and weekday buckets come from ES|QL DATE_EXTRACT/DATE_FORMAT, which evaluate in UTC, but the axes are titled just "Hour" and "Day of week". Label them as UTC so users in other time zones don't read the pattern as local time.
Details
The rewritten 'Login Activity by Week and Hour' panel (lines 1097/1107) derives day_of_week with DATE_FORMAT("e"/"EEE", @timestamp) and hour_of_day with DATE_EXTRACT("hour_of_day", @timestamp). It follows maintainer thread 4258386344 and fixes the earlier diagonal date-histogram heatmap. The query passes no time zone, so ES|QL buckets in UTC. Lens date-histogram panels on the same dashboard, such as 'Login Attempts over Time', follow the browser or dateFormat:tz zone. For a user outside UTC, this heatmap puts logins in a different hour than the rest of the dashboard, and near midnight in a different weekday. The axis titles at line 1118-1119 (xTitle: "Day of week", yTitle: "Hour") do not mention this. Impact is presentational only.
Recommendation:
Make the UTC basis explicit. For example, set the heatmap xTitle/yTitle (lines 1118-1119) and the column labels (lines 1067/1077) to "Day of week (UTC)" and "Hour (UTC)", or rename the panel to "Login Activity by Week and Hour (UTC)".
🤖 AI-Generated Review | Vera Review Bot - v0.4.3 | 📚 Knowledge base: integration-skills
⚠️ Automated review — verify suggestions before applying.
kcreddy
left a comment
There was a problem hiding this comment.
@mohitjha-elastic can you check #21995 review comments and apply here as applicable especially Dan's.
|
🟢 No issues across the latest commits 9cb69f0.
|
kcreddy
left a comment
There was a problem hiding this comment.
LGTM (after merge conflicts)
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
…snowflake-1.0.0-preview01
|
✅ All changelog entries have the correct PR link. |
💚 Build Succeeded
History
|
|
As Shourie is currently out, and his review comments have been addressed, we’re proceeding with merging the PR. @ShourieG Please let us know if you have any concerns regarding the review comments; we can address them in a follow-up PR. |
|
Package snowflake - 0.2.0 containing this change is available at https://epr.elastic.co/package/snowflake/0.2.0/ |
Proposed commit message
Checklist
changelog.ymlfile.How to test this PR locally
To test the integration:
Screenshots