:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { combineUrl } from 'kea-router'
import { urls } from 'scenes/urls'
/** Sidebar + deep-link id for the Logs → Configuration → Retention setting, which holds the rules table. */
export const LOGS_RETENTION_RULES_SETTING_ID = 'logs-retention' as const
/** Logs scene, Configuration tab, environment logs section, Retention item (query + hash for deep links). */
export function logsRetentionRulesSettingsUrl(): string {
return combineUrl(
urls.logs(),
{
activeTab: 'configuration',
section: 'environment-logs',
setting: LOGS_RETENTION_RULES_SETTING_ID,
},
{ selectedSetting: LOGS_RETENTION_RULES_SETTING_ID }
).url
}