Source types for the Splunk Add-on for Microsoft SQL Server
The Splunk Add-on for Microsoft SQL Server collects different kinds of data from Microsoft SQL Server and assigns a source type for each kind of data. It collects data via file monitoring, Windows Performance Monitoring, and through Splunk DB Connect:
Source types collected through file monitoring
Log | Log Format | Description | Source Type | File Location | CIM data models |
---|---|---|---|---|---|
Error log | Plain text | The error log contains error messages as well as some activities of SQL Server. | mssql:errorlog
|
After you install and start Microsoft SQL Server, the server creates this log file under the SQL Server installation folder. Example Location: C:\Program Files\Microsoft SQL Server\
|
Authentication |
Agent log | Plain text | The agent log records SQL Server agent service related activities. | mssql:agentlog
|
After you install and start the Microsoft SQL Server agent, the server creates this log file under the SQL Server installation folder. Example Location: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\SQLAGENT.OUT
|
None |
Source types collected through Windows Performance Monitoring
Object | Counter | Source type | CIM data models |
---|---|---|---|
Processor | % Processor Time | perfmon:sqlserverhost:processor
|
None |
Network Interface | Current Bandwidth; Bytes Total/sec | perfmon:sqlserverhost:network
|
None |
Memory | % Committed Bytes In Use; Pages/sec; Available Mbytes; Pages | perfmon:sqlserverhost:memory
|
None |
SQLServer:Buffer Manager | * | perfmon:sqlserver:buffer_manager
|
None |
SQLServer:Databases | Active Transactions; Data File(s) Size (KB); Log File(s) Size (KB);Log File(s) Used Size (KB); Transactions/sec | perfmon:sqlserver:databases
|
None |
SQLServer:Memory Manager | Total Server Memory (KB);Granted Workspace Memory (KB);Maximum Workspace Memory (KB);Memory Grants Outstanding;Memory Grants Pending;Target Server Memory (KB) | perfmon:sqlserver:memory_manager
|
None |
LogicalDisk | Avg. Disk sec/Read; Avg. Disk sec/Write | perfmon:sqlserverhost:logicaldisk
|
None |
PhysicalDisk | Disk Reads/sec; Disk Writes/sec; Avg. Disk sec/Read; Avg. Disk sec/Write; Avg. Disk sec/Transfer; Disk Read Bytes/sec; Disk Write Bytes/sec; Avg. Disk Queue Length | perfmon:sqlserverhost:physicaldisk
|
None |
Paging File | % Usage; % Usage Peak | perfmon:sqlserverhost:paging_file
|
None |
Process | Private Bytes; % Processor Time | perfmon:sqlserverhost:process
|
None |
System | Processor Queue Length; Context Switches/sec | perfmon:sqlserverhost:system
|
None |
SQLServer:General Statistics | User Connections; Processes blocked; Logins/sec; Logout/sec | perfmon:sqlserver:general_statistics
|
None |
SQLServer:SQL Statistics | Batch Requests/sec; SQL Compilations/sec; SQL re-Compilations/sec; SQL Attention Rate/sec; Auto-Param Attempts/sec; Failed Auto-Params/sec; Safe Auto-Params/sec; Unsafe Auto-Params/sec | perfmon:sqlserver:sql_statistics
|
None |
SQLServer:Access Methods | Forwarded Records/sec; Full Scans/sec; Index Searches/sec;Page Splits/sec; Workfiles Created/sec; Worktables Created/sec; Worktables From Cache Ratio; Table Lock Escalations/sec | perfmon:sqlserver:access_methods
|
None |
SQLServer:Latches | Latch Waits/sec; Avg Latch Wait Time (ms); Total Latch Wait Time (ms) | perfmon:sqlserver:latches
|
None |
SQLServer:SQL Errors | Errors/sec | perfmon:sqlserver:sql_errors
|
None |
SQLServer:Locks | Number of Deadlocks/sec; Average Wait Time (ms) | perfmon:sqlserver:locks
|
None |
SQLServer:Transactions | Transactions; Longest Transaction Running Time | perfmon:sqlserver:transactions
|
None |
Source types collected through Splunk DB Connect
Data from Dynamic Management View
Type | Dynamic Management View | Source type | CIM or ITSI data models |
---|---|---|---|
alwayson | sys.dm_hadr_auto_
|
mssql:alwayson:dm_hadr_auto_page_repair
|
None |
sys.dm_hadr_
|
mssql:alwayson:
|
None | |
sys.dm_hadr_
|
mssql:alwayson:
|
None | |
sys.dm_hadr_
|
mssql:alwayson:
|
None | |
sys.dm_hadr_
|
mssql:alwayson:
|
None | |
sys.dm_hadr_cluster
|
mssql:alwayson:dm_hadr_cluster
|
None | |
sys.dm_hadr_cluster_
|
mssql:alwayson:dm_hadr_cluster_members
|
None | |
sys.dm_hadr_cluster_
|
mssql:alwayson:dm_hadr_cluster_networks
|
None | |
sys.dm_hadr_database_
|
mssql:alwayson:
|
None | |
sys.dm_hadr_database_
|
mssql:alwayson:dm_hadr_database_replica_states
|
None | |
sys.dm_hadr_instance_
|
mssql:alwayson:dm_hadr_instance_node_map
|
None | |
sys.dm_hadr_name_
|
mssql:alwayson:dm_hadr_name_id_map
|
None | |
sys.dm_tcp_listener_
|
mssql:alwayson:dm_tcp_listener_states
|
None | |
database | sys.dm_db_file_
|
mssql:database:dm_db_file_space_usage
|
None |
sys.dm_db_
|
mssql:database:dm_db_partition_stats
|
None | |
sys.dm_db_
|
mssql:database:dm_db_session_space_usage
|
None | |
sys.dm_db_
|
mssql:database:dm_db_uncontained_entities
|
None | |
sys.dm_db_fts_
|
mssql:database:dm_db_fts_index_physical_stats
|
None | |
sys.dm_db_
|
mssql:database:dm_db_persisted_sku_features
|
None | |
sys.dm_db_
|
mssql:database:dm_db_task_space_usage
|
None | |
execution | sys.dm_exec_
|
mssql:execution:dm_exec_query_stats
|
Databases, Database (ITSI) |
sys.dm_exec_
|
mssql:execution:dm_exec_sessions
|
Databases, Database (ITSI) | |
sys.dm_exec_
|
mssql:execution:dm_exec_background_job_queue
|
None | |
sys.dm_exec_
|
mssql:execution:
|
None | |
sys.dm_exec_
|
mssql:execution:dm_exec_cached_plans
|
None | |
sys.dm_exec_
|
mssql:execution:dm_exec_connections
|
None | |
sys.dm_exec_
|
mssql:execution:dm_exec_procedure_stats
|
None | |
sys.dm_exec_
|
mssql:execution:dm_exec_query_memory_grants
|
None | |
sys.dm_exec_
|
mssql:execution:dm_exec_query_optimizer_info
|
None | |
sys.dm_exec_
|
mssql:execution:
|
None | |
sys.dm_exec_
|
mssql:execution:dm_exec_requests
|
None | |
sys.dm_exec_
|
mssql:execution:dm_exec_trigger_stats
|
None | |
index | sys.dm_db_
|
mssql:index:dm_db_index_physical_stats
|
None |
sys.dm_db_
|
mssql:index:dm_db_index_operational_stats
|
None | |
sys.dm_db_
|
mssql:index:dm_db_index_usage_stats
|
None | |
sys.dm_db_
|
mssql:index:dm_db_missing_index_details
|
None | |
sys.dm_db_
|
mssql:index:dm_db_missing_index_groups
|
None | |
sys.dm_db_
|
mssql:index:
|
None | |
instance | Built-in functions:
|
mssql:instance
|
Databases, Database (ITSI) |
Built-in functions:
|
mssql:instancestats
|
Databases | |
sys.processes
|
mssql:processes
|
None | |
sys.databases
|
mssql:databases
|
Databases | |
mirroring | sys.dm_db_
|
mssql:mirroring:
|
None |
sys.dm_db_
|
mssql:mirroring:
|
None | |
OS | sys.dm_os_
|
mssql:os:dm_os_sys_info
|
Databases; Performance |
sys.dm_os_
|
mssql:os:dm_os_performance_counters
|
Database (ITSI) | |
sys.dm_os_
|
mssql:os:dm_os_windows_info
|
None | |
sys.dm_os_
|
mssql:os:dm_os_buffer_descriptors
|
None | |
replication | sys.dm_repl_
|
mssql:replication:dm_repl_articles
|
None |
sys.dm_repl_
|
mssql:replication:dm_repl_tranhash
|
None | |
sys.dm_repl_
|
mssql:replication:dm_repl_schemas
|
None | |
sys.dm_repl_
|
mssql:replication:dm_repl_traninfo
|
None | |
transaction | sys.dm_tran_
|
mssql:transaction:dm_tran_locks
|
Databases |
sys.dm_tran_active_
|
mssql:transaction:
|
None | |
sys.dm_tran_current_
|
mssql:transaction:dm_tran_current_snapshot
|
None | |
sys.dm_tran_database_
|
mssql:transaction:
|
None | |
sys.dm_tran_session_
|
mssql:transaction:dm_tran_session_transactions
|
None | |
sys.dm_tran_
|
mssql:transaction:
|
None | |
sys.dm_tran_
|
mssql:transaction:dm_tran_active_transactions
|
None | |
sys.dm_tran_
|
mssql:transaction:dm_tran_current_transaction
|
None | |
sys.dm_tran_
|
mssql:transaction:
|
None | |
sys.dm_tran_version_store
|
mssql:transaction:dm_tran_version_store
|
None | |
Other | sys.tables
|
mssql:table
|
Database (ITSI) |
sys.database_principals
|
mssql:user
|
Database (ITSI) |
Trace and audit logs
Log | Log Format | Description | Source type | CIM data models |
---|---|---|---|---|
Trace log | Binary | Default trace provides troubleshooting support. You can open default trace logs with SQL Server Profiler or query them with Transact-SQL by using the fn_trace_gettable system function. This add-on uses the fn_trace_gettable system function via DB Connect. | mssql:trclog
|
None |
Audit log | Binary | SQL Server audit lets you create server audits for server-level, database-level, and table-level events. See Create audit objects in Microsoft SQL Server for more information. Audit logs can be read by the sys.fn_get_audit_file system function. This add-on uses the sys.fn_get_audit_file function via DB Connect. | mssql:audit
|
None |
The Splunk Add-on for Microsoft SQL Server | Release notes for the Splunk Add-on for Microsoft SQL Server |
This documentation applies to the following versions of Splunk® Supported Add-ons: released
Feedback submitted, thanks!