{
+ it('keeps guide-only catalog entries available with unique stable ids', () => {
+ const ids = INJECTED_MODULES.map((integration) => integration.id)
+ expect(new Set(ids).size).toBe(ids.length)
+ expect(INJECTED_MODULES.map((integration) => integration.moduleName)).toContain('SYSLOG')
+ })
+
+ it('provides a demonstrative integration for every supported guide channel', () => {
+ const channels = new Set(INJECTED_MODULES.map((integration) => integration.guideChannel))
+ expect(channels).toEqual(new Set(['syslog', 'netflow', 'windows-agent', 'linux-agent']))
+ })
+
+ it('uses the supported Syslog and NetFlow endpoints', () => {
+ const syslog = INJECTED_MODULES.find((integration) => integration.moduleName === 'SYSLOG')
+ const netflow = INJECTED_MODULES.find((integration) => integration.moduleName === 'NETFLOW')
+ expect(syslog).toMatchObject({ dataType: 'syslog', defaultPort: '7014/tcp', logFilterField: 'dataSource' })
+ expect(netflow).toMatchObject({ dataType: 'netflow', defaultPort: '2055/udp', logFilterField: 'log.exporter' })
+ })
+
+ it('filters nested Windows and Linux product fields with is-one-of', () => {
+ const sqlServer = INJECTED_MODULES.find((integration) => integration.moduleName === 'WINDOWS_SQL_SERVER')
+ const nginx = INJECTED_MODULES.find((integration) => integration.moduleName === 'NGINX')
+ expect(sqlServer?.logFilters).toContainEqual({
+ field: 'log.providerName',
+ operator: 'IS_ONE_OF_TERMS',
+ value: ['MSSQLSERVER'],
+ })
+ expect(nginx?.logFilters).toContainEqual({
+ field: 'log.syslogIdentifier',
+ operator: 'IS_ONE_OF_TERMS',
+ value: ['nginx'],
+ })
+ })
+})
diff --git a/frontend/src/features/integrations/constants/injectedModules.ts b/frontend/src/features/integrations/constants/injectedModules.ts
new file mode 100644
index 0000000000..0ed2d7c01c
--- /dev/null
+++ b/frontend/src/features/integrations/constants/injectedModules.ts
@@ -0,0 +1,129 @@
+import type {
+ Integration,
+ DeployKind,
+ IntegrationGuideChannel,
+ IntegrationLogFilter,
+} from '@/features/integrations/types'
+
+/**
+ * Integrations that exist in the product but not in the backend `integrations`
+ * catalog (that table is seeded once in the DB and this branch cannot write to
+ * it). They are injected client-side so they show up as catalog cards with their
+ * setup guides, exactly like the backend-owned ones.
+ *
+ * These frontend-owned demonstration entries fill gaps in the backend catalog.
+ * The API row wins when one exists; otherwise the stable injected entry keeps
+ * its icon, category, guide channel and log filter available in the grid.
+ *
+ * IDs are fixed (not random per render) so React keys and references stay
+ * stable across refetches.
+ */
+interface InjectedSeed {
+ id: string
+ name: string
+ moduleName: string
+ dataType: string
+ kind: DeployKind
+ category: string
+ icon: string
+ defaultPort: string
+}
+
+const SEEDS: InjectedSeed[] = [
+ { id: '6b7f1a2c-3d4e-4f5a-9c6b-7a8d9e0f1a2b', name: 'Nginx', moduleName: 'NGINX', dataType: 'nginx', kind: 'other', category: 'web-server', icon: 'nginx.svg', defaultPort: '514/udp' },
+ { id: '1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f', name: 'Apache', moduleName: 'APACHE', dataType: 'apache', kind: 'other', category: 'web-server', icon: 'apache.svg', defaultPort: '514/udp' },
+ { id: '2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a', name: 'Apache2', moduleName: 'APACHE2', dataType: 'apache2', kind: 'other', category: 'web-server', icon: 'apache2.svg', defaultPort: '514/udp' },
+ { id: '3e4f5a6b-7c8d-4e9f-0a1b-2c3d4e5f6a7b', name: 'IIS', moduleName: 'IIS', dataType: 'iis', kind: 'other', category: 'web-server', icon: 'iis.svg', defaultPort: 'filebeat/local' },
+ { id: '4f5a6b7c-8d9e-4f0a-1b2c-3d4e5f6a7b8c', name: 'MySQL', moduleName: 'MYSQL', dataType: 'mysql', kind: 'other', category: 'database', icon: 'mysql.svg', defaultPort: '514/udp' },
+ { id: '5a6b7c8d-9e0f-4a1b-2c3d-4e5f6a7b8c9d', name: 'PostgreSQL', moduleName: 'POSTGRESQL', dataType: 'postgresql', kind: 'other', category: 'database', icon: 'postgresql.svg', defaultPort: '514/udp' },
+ { id: '6b7c8d9e-0f1a-4b2c-3d4e-5f6a7b8c9d0e', name: 'MongoDB', moduleName: 'MONGODB', dataType: 'mongodb', kind: 'other', category: 'database', icon: 'mongodb.svg', defaultPort: '514/udp' },
+ { id: '7c8d9e0f-1a2b-4c3d-4e5f-6a7b8c9d0e1f', name: 'Redis', moduleName: 'REDIS', dataType: 'redis', kind: 'other', category: 'database', icon: 'redis.svg', defaultPort: '514/udp' },
+ { id: '8d9e0f1a-2b3c-4d4e-5f6a-7b8c9d0e1f2a', name: 'Elasticsearch', moduleName: 'ELASTICSEARCH', dataType: 'elasticsearch', kind: 'other', category: 'database', icon: 'elasticsearch.svg', defaultPort: '514/udp' },
+ { id: '9e0f1a2b-3c4d-4e5f-6a7b-8c9d0e1f2a3b', name: 'Logstash', moduleName: 'LOGSTASH', dataType: 'logstash', kind: 'other', category: 'database', icon: 'logstash.svg', defaultPort: '514/udp' },
+ { id: '0f1a2b3c-4d5e-4f6a-7b8c-9d0e1f2a3b4c', name: 'Kibana', moduleName: 'KIBANA', dataType: 'kibana', kind: 'other', category: 'database', icon: 'kibana.svg', defaultPort: '514/udp' },
+ { id: '1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d', name: 'Kafka', moduleName: 'KAFKA', dataType: 'kafka', kind: 'other', category: 'messaging', icon: 'kafka.svg', defaultPort: '514/udp' },
+ { id: '2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e', name: 'NATS', moduleName: 'NATS', dataType: 'nats', kind: 'other', category: 'messaging', icon: 'nats.svg', defaultPort: '514/udp' },
+ { id: '3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f', name: 'HAProxy', moduleName: 'HAPROXY', dataType: 'haproxy', kind: 'other', category: 'proxy', icon: 'haproxy.svg', defaultPort: '514/udp' },
+ { id: '4d5e6f7a-8b9c-4d0e-1f2a-3b4c5d6e7f8a', name: 'Traefik', moduleName: 'TRAEFIK', dataType: 'traefik', kind: 'other', category: 'proxy', icon: 'traefik.svg', defaultPort: '514/udp' },
+ { id: '5e6f7a8b-9c0d-4e1f-2a3b-4c5d6e7f8a9b', name: 'OsQuery', moduleName: 'OSQUERY', dataType: 'osquery', kind: 'other', category: 'other', icon: 'osquery.svg', defaultPort: 'agent (local)' },
+ { id: '6f7a8b9c-0d1e-4f2a-3b4c-5d6e7f8a9b0c', name: 'Syslog', moduleName: 'SYSLOG', dataType: 'syslog', kind: 'other', category: 'syslog', icon: 'syslog.svg', defaultPort: '514/udp' },
+ { id: '7a8b9c0d-1e2f-4a3b-4c5d-6e7f8a9b0c1d', name: 'JSON Input', moduleName: 'JSON', dataType: 'json-input', kind: 'other', category: 'other', icon: 'json.svg', defaultPort: '8080' },
+ { id: '8b9c0d1e-2f3a-4b5c-8d9e-0f1a2b3c4d5e', name: 'SQL Server Event Logs', moduleName: 'WINDOWS_SQL_SERVER', dataType: 'wineventlog', kind: 'other', category: 'database', icon: 'windows.png', defaultPort: 'agent (local)' },
+ { id: '9c0d1e2f-3a4b-5c6d-9e0f-1a2b3c4d5e6f', name: 'Windows File Access Auditing', moduleName: 'WINDOWS_FILE_AUDITING', dataType: 'wineventlog', kind: 'other', category: 'operating-system', icon: 'windows.png', defaultPort: 'agent (local)' },
+ { id: 'ad1e2f3a-4b5c-6d7e-8f90-1a2b3c4d5e6f', name: 'NetFlow Exporter', moduleName: 'NETFLOW', dataType: 'netflow', kind: 'other', category: 'network', icon: 'netflow.svg', defaultPort: '2055/udp' },
+]
+
+interface GuideMetadata {
+ channel: IntegrationGuideChannel
+ dataType?: string
+ defaultPort?: string
+ filters?: IntegrationLogFilter[]
+ filterField?: 'dataSource' | 'log.exporter'
+ setting?: string
+}
+
+const GUIDE_METADATA: Record
= {
+ DEFAULT: {
+ channel: 'syslog',
+ dataType: 'syslog',
+ defaultPort: '7014/tcp',
+ filterField: 'dataSource',
+ },
+ NGINX: {
+ channel: 'linux-agent',
+ dataType: 'linux',
+ filters: [{ field: 'log.syslogIdentifier', operator: 'IS_ONE_OF_TERMS', value: ['nginx'] }],
+ setting: 'Configure Nginx access and error logs to be forwarded to the Linux journal or syslog.',
+ },
+ SYSLOG: { channel: 'syslog', defaultPort: '7014/tcp', filterField: 'dataSource' },
+ NETFLOW: { channel: 'netflow', defaultPort: '2055/udp', filterField: 'log.exporter' },
+ JSON: {
+ channel: 'syslog',
+ dataType: 'syslog',
+ defaultPort: '7014/tcp',
+ filterField: 'dataSource',
+ setting: 'The legacy JSON HTTP endpoint is not published in v12. This demo entry uses the supported syslog channel; send JSON text as a syslog message.',
+ },
+ WINDOWS_SQL_SERVER: {
+ channel: 'windows-agent',
+ filters: [
+ { field: 'log.providerName', operator: 'IS_ONE_OF_TERMS', value: ['MSSQLSERVER'] },
+ { field: 'log.channel', operator: 'IS_ONE_OF_TERMS', value: ['Application'] },
+ ],
+ setting: 'Enable SQL Server auditing and write its events to the Windows Application event log. The event provider name depends on the SQL Server instance configuration.',
+ },
+ WINDOWS_FILE_AUDITING: {
+ channel: 'windows-agent',
+ filters: [
+ { field: 'log.providerName', operator: 'IS_ONE_OF_TERMS', value: ['Microsoft-Windows-Security-Auditing'] },
+ { field: 'log.channel', operator: 'IS_ONE_OF_TERMS', value: ['Security'] },
+ ],
+ setting: 'Enable File System auditing in Advanced Audit Policy and configure auditing entries on the folders to monitor.',
+ },
+}
+
+export const INJECTED_MODULES: Integration[] = SEEDS.map((s) => {
+ const guide = GUIDE_METADATA[s.moduleName] ?? GUIDE_METADATA.DEFAULT
+ return {
+ id: s.id,
+ name: s.name,
+ moduleName: s.moduleName,
+ dataType: guide.dataType ?? s.dataType,
+ ingestType: 'forwarder',
+ kind: s.kind,
+ status: 'available',
+ description: guide.setting ?? '',
+ category: s.category,
+ logo: `/integrations/${s.icon}`,
+ systemOwner: true,
+ guideOnly: true,
+ defaultPort: guide.defaultPort ?? s.defaultPort,
+ guideChannel: guide.channel,
+ logFilters: guide.filters,
+ logFilterField: guide.filterField,
+ guideSetting: guide.setting ?? `Configure ${s.name} to send its logs through the supported syslog channel.`,
+ events24h: undefined,
+ rate: undefined,
+ darkInvert: false,
+ }
+})
diff --git a/frontend/src/features/integrations/pages/IntegrationsPage.tsx b/frontend/src/features/integrations/pages/IntegrationsPage.tsx
index 70954da1ef..f0749326da 100644
--- a/frontend/src/features/integrations/pages/IntegrationsPage.tsx
+++ b/frontend/src/features/integrations/pages/IntegrationsPage.tsx
@@ -13,6 +13,7 @@ import { AddCustomIntegrationCard } from '@/features/integrations/components/Add
import { CreateIntegrationDrawer } from '@/features/integrations/components/CreateIntegrationDrawer'
import { KIND_META, categoryLabel } from '@/features/integrations/constants'
import { SYSTEM_MODULES } from '@/features/integrations/constants/systemModules'
+import { INJECTED_MODULES } from '@/features/integrations/constants/injectedModules'
import type {
Integration,
DeployKind,
@@ -30,21 +31,25 @@ const LOGO = (slug: string) => {
return `/integrations/${slug}`
}
+const INJECTED_BY_MODULE_NAME = new Map(
+ INJECTED_MODULES.map((integration) => [integration.moduleName ?? '', integration]),
+)
function mapModuleToIntegration(module: IntegrationResponse, t: TFunction): Integration {
const isSystem = module.systemOwner
// System integrations: icon, description and category are owned by the frontend
// (per-theme icons + i18n). Custom ones keep using the catalog row's own icon
// and description, and group under 'custom'.
+ const injectedMeta = INJECTED_BY_MODULE_NAME.get(module.name)
const meta = isSystem ? SYSTEM_MODULES[module.name] : undefined
- const category = meta?.category ?? 'custom'
+ const category = meta?.category ?? injectedMeta?.category ?? 'custom'
// Map the category to a known DeployKind; anything unknown falls back to
// 'other' (Collector group) so a new integration never breaks the grid.
const kind: DeployKind = (category in KIND_META ? category : 'other') as DeployKind
const description = isSystem
- ? t(`integrations.modules.${module.name}`, { defaultValue: module.description || '' })
+ ? t(`integrations.modules.${module.name}.description`, { defaultValue: module.description || '' })
: module.description || ''
// Resolve the logo + optional dark variant:
// - system module → frontend-owned per-theme asset,
@@ -55,6 +60,9 @@ function mapModuleToIntegration(module: IntegrationResponse, t: TFunction): Inte
if (meta) {
logo = LOGO(meta.icon)
logoDark = meta.iconDark ? LOGO(meta.iconDark) : undefined
+ } else if (isSystem && injectedMeta) {
+ logo = injectedMeta.logo
+ logoDark = injectedMeta.logoDark
} else if (module.icon) {
logo = LOGO(module.icon)
} else {
@@ -64,7 +72,9 @@ function mapModuleToIntegration(module: IntegrationResponse, t: TFunction): Inte
return {
id: module.id,
- name: isSystem ? t(`integrations.modules.${module.name}.name`, { defaultValue: module.name }) : module.name,
+ name: isSystem
+ ? t(`integrations.modules.${module.name}.name`, { defaultValue: displayModuleName(module.name) })
+ : module.name,
moduleName: module.name,
dataType: module.dataType,
ingestType: module.ingestType,
@@ -76,11 +86,22 @@ function mapModuleToIntegration(module: IntegrationResponse, t: TFunction): Inte
logo,
logoDark,
darkInvert: false,
+ ...(module.name.toUpperCase() === 'NETFLOW' ? { guideChannel: 'netflow' as const } : {}),
+ ...(module.name.toUpperCase() === 'NETFLOW' ? { logFilterField: 'log.exporter' as const } : {}),
events24h: undefined,
rate: undefined,
}
}
+function displayModuleName(moduleName: string): string {
+ return moduleName
+ .toLowerCase()
+ .split(/[_\s-]+/)
+ .filter(Boolean)
+ .map((part) => part[0].toUpperCase() + part.slice(1))
+ .join(' ')
+}
+
// Pinned order for the three OS agents so they always lead the grid.
const AGENT_ORDER = ['WINDOWS_AGENT', 'LINUX_AGENT', 'MACOS']
@@ -159,7 +180,35 @@ export function IntegrationsPage() {
const [editing, setEditing] = useState(null)
const modules = integrations.integrations.data || []
- const displayList = useMemo(() => modules.map((m) => mapModuleToIntegration(m, t)), [modules, t])
+ const displayList = useMemo(() => {
+ const injectedByName = new Map(INJECTED_MODULES.map((entry) => [entry.moduleName, entry]))
+ const catalog = modules.map((m) => {
+ const mapped = mapModuleToIntegration(m, t)
+ const guideMetadata = injectedByName.get(m.name)
+ return guideMetadata
+ ? {
+ ...mapped,
+ guideChannel: guideMetadata.guideChannel,
+ guideOnly: true,
+ logFilters: guideMetadata.logFilters,
+ logFilterField: guideMetadata.logFilterField,
+ guideSetting: guideMetadata.guideSetting,
+ }
+ : mapped
+ })
+ // Injected catalog cards are frontend-owned; dedupe against the backend
+ // list by moduleName so a future backend row for the same module never
+ // shows up twice (backend row wins — it carries the real id + dataType).
+ const backendModuleNames = new Set(modules.map((m) => m.name))
+ const injected = INJECTED_MODULES
+ .filter((i) => !backendModuleNames.has(i.moduleName ?? ''))
+ .map((i) => ({
+ ...i,
+ name: t(`integrations.modules.${i.moduleName}.name`, { defaultValue: i.name }),
+ description: t(`integrations.modules.${i.moduleName}.description`, { defaultValue: i.description }),
+ }))
+ return [...catalog, ...injected]
+ }, [modules, t])
// The raw catalog row for the module being edited (for its actual stored icon).
const editingModule = editing ? modules.find((m) => String(m.id) === editing.id) : undefined
diff --git a/frontend/src/features/integrations/types/index.ts b/frontend/src/features/integrations/types/index.ts
index 879306b0f7..1ae0d0af1e 100644
--- a/frontend/src/features/integrations/types/index.ts
+++ b/frontend/src/features/integrations/types/index.ts
@@ -35,6 +35,14 @@ export type DeployKind = 'agents & syslog' | 'device' | 'antivirus' | 'other' |
export type Status = 'configured' | 'available'
export type Tab = 'all' | 'agents' | 'collectors' | 'cloud' |'custom'
+export type IntegrationGuideChannel = 'syslog' | 'netflow' | 'windows-agent' | 'linux-agent'
+
+export interface IntegrationLogFilter {
+ field: string
+ operator: 'IS_ONE_OF_TERMS'
+ value: unknown[]
+}
+
export interface Integration {
id: string;
/** Display label, translated (i18n integrations.modules.). */
@@ -52,6 +60,15 @@ export interface Integration {
systemOwner?: boolean; // false → custom (uses the catalog row's icon/description)
darkInvert?: boolean;
defaultPort?: string;
+ /** Frontend-only guide route for injected and channel-based integrations. */
+ guideChannel?: IntegrationGuideChannel;
+ /** This entry is a presentation/demo fallback and has no catalog row of its own. */
+ guideOnly?: boolean;
+ /** Technology-specific filters passed to Log Explorer. */
+ logFilters?: IntegrationLogFilter[];
+ /** Value entered by the user for sources identified by sender/exporter address. */
+ logFilterField?: 'dataSource' | 'log.exporter';
+ guideSetting?: string;
cloudFields?: { label: string; placeholder: string; secret?: boolean }[];
events24h?: number;
rate?: number;
diff --git a/frontend/src/features/log-explorer/components/LogExplorerView.tsx b/frontend/src/features/log-explorer/components/LogExplorerView.tsx
index c7c3605bf9..64b5f2779f 100644
--- a/frontend/src/features/log-explorer/components/LogExplorerView.tsx
+++ b/frontend/src/features/log-explorer/components/LogExplorerView.tsx
@@ -78,6 +78,13 @@ interface RelatedLogsSeed {
truncated?: boolean
}
+interface DashboardSearchSeed {
+ dataset: string
+ dataType?: string
+ filters: FilterType[]
+ range: TimeRange
+}
+
const BUILDER_OPS: FilterOpDef[] = [
{ id: 'IS', label: 'is', needsValue: true },
{ id: 'IS_NOT', label: 'is not', needsValue: true },
@@ -209,6 +216,7 @@ export function LogExplorerView({ initial, onConfigChange }: LogExplorerViewProp
const ps = list.find((l) => l.dataset === (initial.dataset ?? DEFAULT_DATASET))?.dataTypes ?? []
const state = location.state as {
relatedLogs?: RelatedLogsSeed
+ dashboardSearch?: DashboardSearchSeed
socaiFilters?: FilterType[]
socaiTime?: string
} | null
@@ -226,6 +234,17 @@ export function LogExplorerView({ initial, onConfigChange }: LogExplorerViewProp
setReadyToPersist(true)
return
}
+ if (state?.dashboardSearch && !seededRef.current) {
+ seededRef.current = true
+ setDataset(state.dashboardSearch.dataset)
+ setPattern(state.dashboardSearch.dataType ?? null)
+ setFilters(state.dashboardSearch.filters)
+ setRange(state.dashboardSearch.range)
+ setColumns(state.dashboardSearch.filters.map((filter) => filter.field))
+ navigate(location.pathname, { replace: true })
+ setReadyToPersist(true)
+ return
+ }
// SOC-AI chat navigation: apply the agent's filters + time window.
if (state?.socaiFilters?.length && !seededRef.current) {
seededRef.current = true
@@ -483,9 +502,15 @@ export function LogExplorerView({ initial, onConfigChange }: LogExplorerViewProp
}, [])
// Adapters: CustomFilterBar works with CustomFilter; FilterType is the internal type.
- // IS_ONE_OF_TERMS (array value) is excluded — rendered separately as terms chips.
- const simpleFilters = useMemo(() => filters.filter((f) => f.operator !== 'IS_ONE_OF_TERMS'), [filters])
- const termsFilters = useMemo(() => filters.filter((f) => f.operator === 'IS_ONE_OF_TERMS'), [filters])
+ // Terms filters are rendered separately from the simple filter editor.
+ const simpleFilters = useMemo(
+ () => filters.filter((f) => f.operator !== 'IS_ONE_OF_TERMS' && f.operator !== 'IS_NOT_ONE_OF_TERMS'),
+ [filters],
+ )
+ const termsFilters = useMemo(
+ () => filters.filter((f) => f.operator === 'IS_ONE_OF_TERMS' || f.operator === 'IS_NOT_ONE_OF_TERMS'),
+ [filters],
+ )
const customFilters = useMemo(() => simpleFilters.map(toCustom), [simpleFilters])
@@ -612,9 +637,15 @@ export function LogExplorerView({ initial, onConfigChange }: LogExplorerViewProp
className="inline-flex items-center gap-1.5 rounded-full border border-primary/25 bg-primary/5 py-1 pl-3 pr-1.5 text-xs"
>
{f.field}
- {t('logExplorer.ops.isOneOf')}
+
+ {t(f.operator === 'IS_NOT_ONE_OF_TERMS' ? 'logExplorer.ops.isNotOneOf' : 'logExplorer.ops.isOneOf')}
+
- {Array.isArray(f.value) ? t('logExplorer.related.nLogs', { count: f.value.length }) : String(f.value)}
+ {Array.isArray(f.value)
+ ? f.field === 'id' && f.value.length > 1
+ ? t('logExplorer.related.nLogs', { count: f.value.length })
+ : f.value.map(String).join(', ')
+ : String(f.value)}