Title: ⚓️ Elasticsearch Hook: Configuration of index suffix date pattern · Issue #130 · secureCodeBox/secureCodeBox · GitHub
Open Graph Title: ⚓️ Elasticsearch Hook: Configuration of index suffix date pattern · Issue #130 · secureCodeBox/secureCodeBox
X Title: ⚓️ Elasticsearch Hook: Configuration of index suffix date pattern · Issue #130 · secureCodeBox/secureCodeBox
Description: As a SCB User i would like to configure the elasticsearch index pattern more precisely when i install the elasticsearch persistence hook. This feature will be useful to optimize the elasticsearch result index size, rollover strategie and...
Open Graph Description: As a SCB User i would like to configure the elasticsearch index pattern more precisely when i install the elasticsearch persistence hook. This feature will be useful to optimize the elasticsearch r...
X Description: As a SCB User i would like to configure the elasticsearch index pattern more precisely when i install the elasticsearch persistence hook. This feature will be useful to optimize the elasticsearch r...
Opengraph URL: https://github.com/secureCodeBox/secureCodeBox/issues/130
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"⚓️ Elasticsearch Hook: Configuration of index suffix date pattern","articleBody":"As a SCB User i would like to configure the elasticsearch index pattern more precisely when i install the elasticsearch persistence hook. This feature will be useful to optimize the elasticsearch result index size, rollover strategie and performance.\r\n\r\nAs for now it is already possible to configure the *index prefix* via the helm chart config:\r\n```yaml\r\n# Define a specific index prefix\r\nindexPrefix: \"scbv2\" \r\n```\r\n\r\nAdditionally it should be possible to configure a date pattern as *suffix* to change the index aggregation level:\r\n\r\n```yaml\r\n# Define a specific index prefix\r\nindexPrefix: \"scbv2\"\r\n# Define a specific index suffix based on date pattern (YEAR, MONTH, WEEK, DATE)\r\nindexSuffix: “YYYY-MM-DD”\r\n# Define if the name of the namespace where this hook is deployed to must be added to the index name. The namespace can be used to separate index by tenants (namespaces).\r\nindexAppendNamespace: true\r\n```\r\n\r\n### Examples\r\nExample index names that should be possible to configure:\r\n\r\n- `scbv2-team-2020-10-05` (daily rollover pattern, append namespace: true)\r\n- `scbv2-team-2020-10` (monthly rollover pattern, append namespace: true)\r\n- `scbv2-team-2020` (yearly rollover pattern, append namespace: true)\r\n- `scbv2-team-2020-45` (weekly rollover pattern, append namespace: true)\r\n- `scbv2-team` (no rollover pattern, append namespace: true)\r\n\r\n- `scbv2-2020-10-05` (daily rollover pattern, append namespace: false)\r\n- `scbv2-2020-10` (monthly rollover pattern, append namespace: false)\r\n- `scbv2-2020` (yearly rollover pattern, append namespace: false)\r\n- `scbv2-2020-45` (weekly rollover pattern, append namespace: false)\r\n- `scbv2` (no rollover pattern, append namespace: false)\r\n\r\n### Where to start?\r\nAs a starting point here a pointer to the current implementation:\r\n\r\nhttps://github.com/secureCodeBox/secureCodeBox-v2/blob/25b548d47795dba2891f45c7d11381ab69275ac5/hooks/persistence-elastic/hook.js#L50\r\n\r\n### Todos:\r\n- [ ] Update HelmChart config defaults\r\n- [ ] Implement feature within hook.js\r\n- [ ] Add additional unit tests for the different configuration options/combinations.","author":{"url":"https://github.com/rfelber","@type":"Person","name":"rfelber"},"datePublished":"2020-09-26T12:00:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/130/secureCodeBox/issues/130"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4503c668-9d8b-a7fc-3eef-4080f0faec7a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90C8:130B0:1AC471:22F1D4:698E9FDD |
| html-safe-nonce | 505e15011b3180be71ca412e033c5003de4800471db388b109fd1c4f1c7adb89 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEM4OjEzMEIwOjFBQzQ3MToyMkYxRDQ6Njk4RTlGREQiLCJ2aXNpdG9yX2lkIjoiNTg3MTg4NjA3NDIyMjEwMDEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 579a116a36286de0e93e6f0cceef5d0b967a0749dde012529329b0034be3bda2 |
| hovercard-subject-tag | issue:721398141 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/secureCodeBox/secureCodeBox/130/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bf6f8ae2ed278ba1ba973664bc7a782c12c41a531dab247b0b38401863c14bee/secureCodeBox/secureCodeBox/issues/130 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bf6f8ae2ed278ba1ba973664bc7a782c12c41a531dab247b0b38401863c14bee/secureCodeBox/secureCodeBox/issues/130 |
| og:image:alt | As a SCB User i would like to configure the elasticsearch index pattern more precisely when i install the elasticsearch persistence hook. This feature will be useful to optimize the elasticsearch r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rfelber |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/secureCodeBox/secureCodeBox git https://github.com/secureCodeBox/secureCodeBox.git |
| octolytics-dimension-user_id | 34573705 |
| octolytics-dimension-user_login | secureCodeBox |
| octolytics-dimension-repository_id | 80711933 |
| octolytics-dimension-repository_nwo | secureCodeBox/secureCodeBox |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 80711933 |
| octolytics-dimension-repository_network_root_nwo | secureCodeBox/secureCodeBox |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width