Advertisement
Guest User

Untitled

a guest
Mar 12th, 2018
1,071
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.29 KB | None | 0 0
  1. # Copyright (C) 2009-2016 Splunk Inc. All Rights Reserved.
  2. # DO NOT EDIT THIS FILE!
  3. # Please make all changes to files in $SPLUNK_HOME/etc/apps/Splunk_TA_windows/local.
  4. # To make changes, copy the section/stanza you want to change from $SPLUNK_HOME/etc/apps/Splunk_TA_windows/default
  5. # into ../local and edit there.
  6. #
  7.  
  8. ###########################
  9. ## DHCP
  10. ###########################
  11.  
  12. [source::....DhcpSrvLog]
  13. sourcetype = DhcpSrvLog
  14.  
  15. [source::...\\(DhcpSrvLog-)...]
  16. sourcetype = DhcpSrvLog
  17.  
  18. [DhcpSrvLog]
  19. SHOULD_LINEMERGE = false
  20. TRANSFORMS-0dhcp_discard_headers = dhcp_discard_headers
  21. REPORT-0auto_kv_for_microsoft_dhcp = auto_kv_for_microsoft_dhcp
  22. LOOKUP-signature_for_microsoft_dhcp = msdhcp_signature_lookup msdhcp_id OUTPUTNEW signature
  23. LOOKUP-vendor_info_for_microsoft_dhcp = windows_vendor_info_lookup sourcetype OUTPUT vendor,product
  24. FIELDALIAS-windows-dhcp = ip AS dest_ip, mac AS raw_mac, nt_host AS dest_nt_host
  25.  
  26. EVAL-dest_mac = lower(case(match(raw_mac, "^\w{12}$"), rtrim(replace(raw_mac, "^(\w{2})", "\1:"), ":"), 1==1, replace(raw_mac, "-|\.|\s", ":")))
  27. EVAL-dest = coalesce(nt_host, ip, lower(case(match(raw_mac, "^\w{12}$"), rtrim(replace(raw_mac, "^(\w{2})", "\1:"), ":"), 1==1, replace(raw_mac, "-|\.|\s", ":"))))
  28.  
  29.  
  30.  
  31. ################################
  32. ## Monitorware Windows Event Log
  33. ################################
  34.  
  35. ## Apply the following properties to MonitorWare single-line text files (.monitorware)
  36. [source::....monitorware]
  37. SHOULD_LINEMERGE = false
  38. TRANSFORMS-force_sourcetype_for_monitorware_txt = force_sourcetype_for_monitorware
  39. TRANSFORMS-force_host_for_monitorware_txt = force_host_for_monitorware
  40. TRANSFORMS-force_source_for_monitorware_txt = force_source_for_monitorware
  41.  
  42. ## Apply the following properties to incoming syslog data (udp/514)
  43. ## Uncomment and modify the stanza ([source::udp:514]) below based on incoming MonitorWare data
  44. #[source::udp:514]
  45. #SHOULD_LINEMERGE = false
  46. #TRANSFORMS-force_sourcetype_for_monitorware_syslog = force_sourcetype_for_monitorware
  47. #TRANSFORMS-force_host_for_monitorware_syslog = force_host_for_monitorware
  48. #TRANSFORMS-force_source_for_monitorware_syslog = force_source_for_monitorware
  49.  
  50. ## Apply the following properties to all MonitorWare events
  51. [source::MonitorWare...]
  52.  
  53. ## Using REPORT-0 to force alphanumeric precedence
  54. REPORT-0kv_for_tab_monitorware = raw_kv_for_tab_monitorware,Message_kv_for_tab_monitorware
  55.  
  56. ## Using REPORT-1 to force alphanumeric precedence
  57. REPORT-1Failure_Reason_for_monitorware = Failure_Reason_for_monitorware
  58. REPORT-1User_for_monitorware = User_for_monitorware
  59.  
  60.  
  61. #############################
  62. ## NTSyslog Windows Event Log
  63. #############################
  64.  
  65. ## Currently we only support NTSyslog:Security
  66.  
  67. [source::....ntsyslog]
  68. SHOULD_LINEMERGE = false
  69. TRANSFORMS-force_sourcetype_for_ntsyslog_txt = force_sourcetype_for_ntsyslog_security
  70. TRANSFORMS-force_host_for_ntsyslog_txt = force_host_for_ntsyslog
  71. TRANSFORMS-force_source_for_ntsyslog_txt = force_source_for_ntsyslog_security
  72.  
  73. ## Apply the following properties to incoming syslog data (udp/514)
  74. ## Uncomment and modify the stanza ([source::udp:514]) below based on incoming NTSyslog data
  75. #[source::udp:514]
  76. #SHOULD_LINEMERGE = false
  77. #TRANSFORMS-force_sourcetype_for_ntsyslog_syslog = force_sourcetype_for_ntsyslog_security
  78. #TRANSFORMS-force_host_for_ntsyslog_syslog = force_host_for_ntsyslog
  79. #TRANSFORMS-force_source_for_ntsyslog_syslog = force_source_for_ntsyslog_security
  80.  
  81. ## Apply the following properties to NTsyslog window security event logs
  82. [source::NTSyslog:Security]
  83.  
  84. ## Using REPORT-<0-2> to force alphanumeric precedence
  85. ## Support for both verisions ([] and <>) of NTSyslog
  86. REPORT-0raw_kv_for_ntsyslog = raw_kv_for_ntsyslog_square, raw_kv_for_ntsyslog_angle
  87. REPORT-1message_kv_for_ntsyslog = message_kv_for_message_for_ntsyslog
  88. ## Commenting in order to disable by default. If NTSyslog is used this should be enabled
  89. #LOOKUP-2action_EventCode_for_ntsyslog = ntsyslog_mappings NTSyslogID OUTPUTNEW action,EventCode,EventCode as signature_id
  90.  
  91.  
  92. ###########################
  93. ## Snare Windows Event Log
  94. ###########################
  95.  
  96. ## Apply the following properties to Snare single-line text files (.snare)
  97. [source::....snare]
  98. SHOULD_LINEMERGE = false
  99. TRANSFORMS-force_sourcetype_for_snare_txt = force_sourcetype_for_snare
  100. TRANSFORMS-force_host_for_snare_txt = force_host_for_snare
  101. TRANSFORMS-force_source_for_snare_txt = force_source_for_snare
  102.  
  103. ## Apply the following properties to incoming syslog data (udp/514)
  104. ## Uncomment and modify the stanza ([source::udp:514]) below based on incoming Snare data
  105. #[source::udp:514]
  106. #SHOULD_LINEMERGE=false
  107. #TRANSFORMS-force_sourcetype_for_snare_syslog = force_sourcetype_for_snare
  108. #TRANSFORMS-force_host_for_snare_syslog = force_host_for_snare
  109. #TRANSFORMS-force_source_for_snare_syslog = force_source_for_snare
  110.  
  111. ## Apply the following properties to all Snare events
  112. [source::Snare...]
  113.  
  114. ## Using REPORT-0 to force alphanumeric precedence
  115. ## Support for both tab and comma delimitted Snare
  116. ## Uncomment/Comment below based on Snare log type
  117. REPORT-0kv_for_tab_snare = raw_kv_for_tab_snare,Message_kv_for_tab_snare
  118. #REPORT-0kv_for_comma_snare = raw_kv_for_comma_snare,Message_kv_for_comma_snare
  119.  
  120.  
  121. ###########################
  122. ## Splunk Windows Event Log
  123. ###########################
  124.  
  125. ## Apply the following properties to Splunk multi-line text files (.windows)
  126. [source::....windows]
  127. SHOULD_LINEMERGE = false
  128. LINE_BREAKER = ([\r\n](?=\d{2}/\d{2}/\d{2,4} \d{2}:\d{2}:\d{2} [aApPmM]{2}))
  129. TRANSFORMS-force_sourcetype_for_windows_txt = force_sourcetype_for_windows_txt,force_sourcetype_application_sophos_for_windows_txt,force_sourcetype_application_sav_for_windows_txt,force_sourcetype_application_trendmicro_for_windows_txt,force_sourcetype_system_ias_for_windows_txt
  130. TRANSFORMS-force_host_for_windows_txt = force_host_for_windows_txt
  131. TRANSFORMS-force_source_for_windows_txt = force_source_for_windows_txt
  132.  
  133. ## windows eventlog modular input sourceing
  134. [source::WinEventLog://*]
  135. TRANSFORMS-force_source_for_wineventlog_modular = force_source_for_wineventlog_modular,force_sourcetype_system_ias_for_wineventlog
  136.  
  137. ## windows system sub-sourcetyping
  138. [source::WinEventLog:System]
  139. TRANSFORMS-force_sourcetype_system_ias_for_wineventlog = force_sourcetype_system_ias_for_wineventlog
  140.  
  141. ## Apply the following properties to all WinEventLog events
  142. ## In addition to WinEventLog properties located in $SPLUNK_HOME/etc/system/default/props.conf
  143. [source::(WMI:WinEventLog|WinEventLog)...]
  144.  
  145. ## Override default REPORT-MESSAGE with REPORT-0MESSAGE to force alphanumeric precedence
  146. REPORT-0MESSAGE = wel-message, wel-eq-kv, wel-col-kv
  147. REPORT-MESSAGE =
  148.  
  149. ###########################
  150. ## Windows XML Event Log
  151. ###########################
  152. [(?::){0}XmlWinEventLog:*]
  153. KV_MODE = none
  154. REPORT-0xml_block_extract = system_xml_block,eventdata_xml_block,userdata_xml_block,debugdata_xml_block,renderinginfo_xml_block
  155. REPORT-0xml_kv_extract = system_props_xml_kv,system_props_xml_attributes,eventdata_xml_data,rendering_info_xml_data
  156.  
  157. ## privilege
  158. REPORT-0privilege_for_windows_security_xml= PrivilegeList_as_vendor_privilege
  159.  
  160. # Extractions to add fields used by generic security extraction
  161. REPORT-RecordNumber_from_xml = EventRecordID_as_RecordNumber
  162. REPORT-EventCode_from_xml = EventID_as_EventCode
  163. REPORT-Source_Port_from_xml = IpPort_as_Source_Port
  164. REPORT-Token_Elevation_Type_from_xml = TokenElevationType_as_Token_Elevation_Type
  165. REPORT-Target_Server_Name_from_xml = TargetServerName_as_Target_Server_Name
  166. REPORT-Logon_Type_from_xml = LogonType_as_Logon_Type
  167. REPORT-Logon_ID_from_xml = SubjectLogonId_as_Logon_ID
  168. REPORT-Caller_Domain_from_xml = SubjectDomainName_as_Caller_Domain
  169. REPORT-Target_Domain_from_xml = TargetDomainName_as_Target_Domain
  170. REPORT-Caller_User_Name_from_xml = SubjectUserName_as_Caller_User_Name
  171. REPORT-Target_User_Name_from_xml = TargetUserName_as_Target_User_Name
  172. REPORT-Sub_Status_from_xml = SubStatus_as_Sub_Status
  173. REPORT-Source_Workstation_from_xml = Workstation_as_Source_Workstation,WorkstationName_as_Source_Workstation,IpAddress_as_Source_Workstation
  174.  
  175. # Extractions to add fields used by generic system extraction
  176. REPORT-signature_message_from_xml = updatelist_from_user_data
  177. REPORT-signature_from_xml = updatetitle_from_user_data
  178.  
  179. FIELDALIAS-Status_as_Error_Code = Status AS Error_Code
  180. LOOKUP-action_for_windows_xmlsecurity = xmlsecurity_eventcode_action_lookup EventCode OUTPUTNEW action, action AS status
  181. LOOKUP-action_for_windows_xmlsecurity_multi_input = xmlsecurity_eventcode_action_lookup_multiinput EventCode, Error_Code OUTPUTNEW action, action as status
  182. ###### All Windows Event Log ######
  183.  
  184. ## Apply the following properties to all Windows events
  185. [source::(MonitorWare|NTSyslog|Snare|WinEventLog|WMI:WinEventLog)...]
  186. LOOKUP-CategoryString_for_windows = windows_signature_lookup signature_id OUTPUTNEW CategoryString,action,result
  187. FIELDALIAS-dvc_for_windows = host AS dvc_nt_host,host AS dvc
  188. FIELDALIAS-event_id_for_windows = RecordNumber AS event_id
  189. FIELDALIAS-severity_for_windows = Type AS severity
  190. FIELDALIAS-severity_id_for_windows = EventType AS severity_id
  191. FIELDALIAS-id_for_windows = RecordNumber AS id
  192. REPORT-file_path-file_name_for_windows = file_path-file_name_for_windows
  193.  
  194. ## Attempt to map EventCodes that have sub statii ( i.e. EventCode=4625 + SubStatus=0xC0000064 = "User name does not exist" )
  195. LOOKUP-signature_for_windows = windows_signature_lookup2 signature_id,Sub_Status OUTPUTNEW signature,signature AS name, signature as subject
  196.  
  197. ## Default lookup for EventCode->signature mapping ( i.e. EventCode=4625 + SubStaus=null() = "An account failed to log on" )
  198. LOOKUP-signature_for_windows3 = windows_signature_lookup signature_id OUTPUTNEW signature,signature AS name, signature AS subject
  199.  
  200. ## Since FIELDALIAS is destructive we need to preserve signature_id for certain SourceName values
  201. EVAL-signature_id = if(SourceName="Microsoft-Windows-WindowsUpdateClient",signature_id,EventCode)
  202.  
  203. FIELDALIAS-user_group_id_for_windows = Primary_Group_ID AS user_group_id
  204.  
  205.  
  206. ###### Windows Application Event Log ######
  207.  
  208. ## All Windows Application
  209. [MonitorWare:Application]
  210. FIELDALIAS-dest_for_monitorware_application = ComputerName AS dest
  211.  
  212. [NTSyslog:Application]
  213. FIELDALIAS-dest_for_ntsyslog_application = ComputerName AS dest
  214.  
  215. [Snare:Application]
  216. FIELDALIAS-dest_for_snare_application = ComputerName AS dest
  217.  
  218. [WinEventLog:Application]
  219. FIELDALIAS-dest_for_wineventlog_application = ComputerName AS dest
  220.  
  221.  
  222. ###### Windows Security Event Log ######
  223. [source::*:Security]
  224.  
  225. ## action, status
  226. ## Override action to allow audit log changes to correspond to Change Analysis data model
  227. LOOKUP-action_for_windows0_security = windows_audit_changes_lookup EventCode OUTPUTNEW action,change_type,object_category
  228. LOOKUP-action_for_windows1_security = windows_action_lookup Type OUTPUTNEW action, action AS status
  229. LOOKUP-action_for_windows2_security = windows_action_lookup Type AS Keywords OUTPUTNEW action, action AS status
  230.  
  231. ## auditing
  232. FIELDALIAS-object_for_windows_security = sourcetype AS object
  233.  
  234. ## privilege
  235. REPORT-0vendor_privilege_for_windows_security = vendor_privilege_sv_for_windows_security,vendor_privilege_mv_for_windows_security
  236. REPORT-privilege_id_for_windows_security = privilege_id_for_windows_security
  237. LOOKUP-privilege_for_windows_security = windows_privilege_lookup privilege_id OUTPUT privilege
  238.  
  239. FIELDALIAS-src_port_for_windows_security = Source_Port AS src_port
  240. REPORT-Token_Elevation_Type_id_for_windows_security = Token_Elevation_Type_id_for_windows_security
  241. LOOKUP-vendor_info_for_windows_security = windows_vendor_info_lookup sourcetype OUTPUT vendor,product
  242. FIELDALIAS-body_for_windows_security = Message AS body
  243.  
  244. ## Set the app field to "win:remote" or "win:local" based on EventCode, Source_Network_Address, Target_Server_Name or Logon_Type
  245. LOOKUP-app0_for_windows_security = windows_app_lookup EventCode OUTPUTNEW app
  246. LOOKUP-app1_for_windows_security = windows_app_lookup Source_Network_Address OUTPUTNEW app
  247. LOOKUP-app2_for_windows_security = windows_app_lookup Target_Server_Name OUTPUTNEW app
  248. LOOKUP-app3_for_windows_security = windows_app_lookup Logon_Type OUTPUTNEW app
  249. LOOKUP-app4_for_windows_security = windows_app_lookup sourcetype OUTPUTNEW app
  250.  
  251. ## Set the following fields based on order of operations
  252. REPORT-session_id_for_windows_security = Logon_ID_as_session_id,Client_Logon_ID_as_session_id,Caller_Logon_ID_as_session_id
  253. REPORT-dest_for_windows_security = Target_Server_Name_as_dest,ComputerName_as_dest
  254. REPORT-dest_nt_domain_for_windows_security = Target_Domain_as_dest_nt_domain,Primary_Domain_as_dest_nt_domain,Group_Domain_as_dest_nt_domain,Account_Domain_as_dest_nt_domain,New_Domain_as_dest_nt_domain,Domain_as_dest_nt_domain,User_ID_as_dest_nt_domain,Security_ID_as_dest_nt_domain,Supplied_Realm_Name_as_dest_nt_domain,Target_Account_ID_as_dest_nt_domain
  255. REPORT-dest_nt_host_for_windows_security = Target_Server_Name_as_dest_nt_host,ComputerName_as_dest_nt_host
  256. REPORT-src_for_windows_security = Source_Workstation_as_src,Workstation_Name_as_src,Caller_Machine_Name_as_src,Client_Machine_Name_as_src,Source_Network_Address_as_src,Client_Address_as_src,ComputerName_as_src
  257. REPORT-src_ip_for_windows_security = Source_Network_Address_as_src_ip,Client_Address_as_src_ip
  258. REPORT-src_nt_domain_for_windows_security = Caller_Domain_as_src_nt_domain,Client_Domain_as_src_nt_domain,Account_Domain_as_src_nt_domain,Security_ID_as_src_nt_domain
  259. REPORT-src_nt_host_for_windows_security = Source_Workstation_as_src_nt_host,Workstation_Name_as_src_nt_host,Caller_Machine_Name_as_src_nt_host,Client_Machine_Name_as_src_nt_host,Caller_Computer_Name_as_src_nt_host
  260. REPORT-src_user_for_windows_security = Caller_User_Name_as_src_user,Client_User_Name_as_src_user,Account_Name_as_src_user,User_Name_as_src_user
  261. REPORT-user_for_windows_security = Logon_Account_as_user,Logon_account_as_user,Target_User_Name_as_user,Primary_User_Name_as_user,Target_Account_Name_as_user,New_Account_Name_as_user,Account_Name_as_user,User_Name_as_user,User_as_user,Security_ID_as_user
  262. REPORT-user_group_for_windows_security = Target_Account_Name_as_user_group,New_Account_Name_as_user_group,Group_Name_as_user_group
  263. REPORT-member_id_for_windows_security = Member_ID_as_member_id,Security_ID_as_member_id
  264. REPORT-member_dn_for_windows_security = Member_Name_as_member_dn,Account_Name_as_member_dn
  265. REPORT-member_nt_domain_for_windows_security = Member_ID_as_member_nt_domain,Security_ID_as_member_nt_domain
  266. REPORT-msad_actions_for_windows_security = msad_action_from_Group_Type_Change,msad_action_from_Change_Type,msad_action_from_Description1,msad_action_from_Description2,msad_action_from_Description3,msad_action_from_raw1,msad_action_from_raw2,msad_action_from_raw3,msad_action_from_raw4
  267. REPORT-msad_attribute_changes_for_windows_security = msad_attribute_changes_from_raw1,msad_attribute_changes_from_raw2,msad_attribute_changes_from_raw3,msad_attribute_changes_from_raw4,msad_attribute_changes_from_raw5,msad_attribute_changes_from_raw6
  268. LOOKUP-msadgroupclass = MSADGroupType MSADGroupClassID OUTPUTNEW MSADGroupClass
  269.  
  270. ###### Windows System Event Log ######
  271.  
  272. ## All Windows System
  273. [source::*:System]
  274. REPORT-bestmatch_for_windows_system = ComputerName_as_dest,ComputerName_as_src
  275. REPORT-0signature_message_for_windows_system_update = signature_message_for_windows_system_update
  276. REPORT-signature_for_windows_system_update = signature_for_windows_system_timesync,signature_for_windows_system_update,signature_for_windows_system_update2,signature_id_for_windowsupdatelog
  277. LOOKUP-status_for_windows_system_update = windows_update_status_lookup EventCode OUTPUTNEW status
  278. REPORT-user_for_windows_system = user_for_windows_system_ias,User_as_user
  279. LOOKUP-vendor_info_for_windows_system = windows_vendor_info_lookup sourcetype OUTPUT vendor,product
  280. FIELDALIAS-body_for_windows_system = signature_message AS body, Message AS body
  281.  
  282. # Legacy field aliases to support ES 2.0.2
  283. FIELDALIAS-package_title_for_windows = signature AS package_title
  284. FIELDALIAS-package_for_windows = signature_id AS package
  285.  
  286. ## IAS (Currently WinEventLog Support Only)
  287. [WinEventLog:System:IAS]
  288. REPORT-0auto_kv_for_windows_system_ias = auto_kv_for_windows_system_ias
  289.  
  290. LOOKUP-app_for_windows_system_ias = windows_app_lookup sourcetype OUTPUTNEW app
  291.  
  292.  
  293. ###### WindowsUpdateLog ######
  294. [source::....WindowsUpdateLog]
  295. sourcetype = WindowsUpdateLog
  296.  
  297. [source::...WindowsUpdate.Log]
  298. sourcetype = WindowsUpdateLog
  299.  
  300. [WindowsUpdateLog]
  301. FIELDALIAS-dest_for_windowsupdatelog = host AS dest
  302. REPORT-0signature_message_for_windowsupdatelog = signature_message_for_windowsupdatelog
  303. REPORT-1signature_for_windowsupdatelog = signature_for_windowsupdatelog,signature_for_windowsupdatelog_restartrequired,signature_for_windowsupdatelog_signature_message
  304. REPORT-signature_id_for_windowsupdatelog = signature_id_for_windowsupdatelog
  305. REPORT-pid-tid-component_for_windowsupdatelog = pid-tid-component_for_windowsupdatelog
  306. LOOKUP-status_for_windowsupdatelog = windows_update_status_lookup vendor_status OUTPUTNEW status
  307. LOOKUP-vendor_info_for_windowsupdatelog = windows_vendor_info_lookup sourcetype OUTPUT vendor,product
  308.  
  309. # Legacy field aliases to support ES 2.0.2
  310. FIELDALIAS-package_title_for_windowsupdatelog = signature AS package_title
  311. FIELDALIAS-package_for_windowsupdatelog = signature_id AS package
  312.  
  313.  
  314. #####################
  315. ## Endpoint Changes
  316. #####################
  317. [source::....fs_notification]
  318. sourcetype = fs_notification
  319.  
  320. ## fs_notification endpoint changes
  321. ## Required fields: action,dest,object,object_category,object_path,status,user
  322. ## Optional fields: object_id,object_attrs,user_type,msg,data,severity
  323. [fs_notification]
  324. REPORT-object_object_path_for_fs_notification = object_object_path_for_fs_notification
  325. REPORT-vendor_object_category_for_fs_notification = vendor_object_category_for_fs_notification
  326.  
  327. FIELDALIAS-vendor_action_for_fs_notification = action AS vendor_action
  328. FIELDALIAS-dest_for_fs_notification = host AS dest
  329. FIELDALIAS-user_for_fs_notification = uid AS user
  330. FIELDALIAS-object_attrs_for_fs_notification = chgs AS object_attrs
  331.  
  332. # Field aliases for conformance to Change_Analysis::Filesystem_Changes object
  333. FIELDALIAS-file_acl_for_fs_notification = mode AS file_acl
  334. FIELDALIAS-file_hash_for_fs_notification = hash AS file_hash
  335. EVAL-file_modify_time = strptime(modtime, "%a %b %d %H:%M:%S %Y")
  336. FIELDALIAS-file_name_for_fs_notification = object AS file_name
  337. FIELDALIAS-file_path_for_fs_notification = object_path AS file_path
  338. FIELDALIAS-file_size_for_fs_notification = size AS file_size
  339.  
  340. # Legacy change_type lookup to support ES 2.0.2
  341. LOOKUP-change_type_for_fs_notification = fs_notification_change_type_lookup sourcetype OUTPUTNEW change_type
  342. LOOKUP-action_for_fs_notification = endpoint_change_vendor_action_lookup vendor_action OUTPUT action
  343. LOOKUP-object_category_for_fs_notification = endpoint_change_object_category_lookup object AS vendor_object_category OUTPUT object_category
  344. # Any fs_notification event indicates a successful change; vendor_status in the lookup is overloaded to accommodate this.
  345. LOOKUP-object_status_for_fs_notification = endpoint_change_status_lookup vendor_status AS sourcetype OUTPUTNEW status
  346.  
  347. [source::....winregistry]
  348. sourcetype = WinRegistry
  349. SHOULD_LINEMERGE = false
  350. LINE_BREAKER = ([\r\n]+)\d{2}\/\d{2}\/\d{2,4}\s+\d{2}:\d{2}:\d{2}\.\d+
  351.  
  352. [WinRegistry]
  353.  
  354. ## Registry Extractions
  355.  
  356. ## registry_path, registry_key_name, registry_value_name
  357. REPORT-registry_path_parser = registry_key_for_WinRegistry,registry_key-registry_value_for_WinRegistry
  358. REPORT-registry_value_data = registry_value_data_for_WinRegistry
  359. FIELDALIAS-registry_value_type = data_type AS registry_value_type
  360.  
  361. ## Endpoint Change Extractions
  362. ## Required fields: action,dest,object,object_category,object_path,status,user
  363. ## Optional fields: object_id,object_attrs,user_type,msg,data,severity
  364. FIELDALIAS-vendor_action_for_WinRegistry = registry_type AS vendor_action
  365. LOOKUP-action_for_WinRegistry = endpoint_change_vendor_action_lookup vendor_action OUTPUT action
  366. FIELDALIAS-dest_for_WinRegistry = host AS dest
  367. REPORT-object_for_WinRegistry = object_as_registry_key_for_WinRegistry,object_as_registry_value_for_WinRegistry
  368. LOOKUP-object_category_for_WinRegistry = endpoint_change_object_category_lookup object as sourcetype OUTPUT object_category
  369. REPORT-vendor_status_msg_for_WinRegistry = vendor_status_msg_for_WinRegistry
  370. LOOKUP-status_for_WinRegistry = endpoint_change_status_lookup vendor_status OUTPUT status
  371. REPORT-user_for_WinRegistry = user_for_WinRegistry
  372. LOOKUP-user_type_for_WinRegistry = endpoint_change_user_type_lookup sourcetype OUTPUT user_type
  373.  
  374.  
  375. #####################
  376. ## Splunk Perfmon/WMI
  377. #####################
  378.  
  379. ###### Global Perfmon ######
  380. [source::....perfmon]
  381. SHOULD_LINEMERGE = false
  382. LINE_BREAKER = ([\r\n]+)\d{2}\/\d{2}\/\d{2,4}\s+\d{2}:\d{2}:\d{2}\.\d+
  383. TRANSFORMS-meta_for_perfmon = force_sourcetype_for_perfmon_txt, force_source_for_perfmon_txt
  384.  
  385. [source::Perfmon...]
  386. FIELDALIAS-dest_for_perfmon = host AS dest
  387. FIELDALIAS-src_for_perfmon = host AS src
  388.  
  389. ###### Global WMI ######
  390. [source::....wmi]
  391. SHOULD_LINEMERGE = false
  392. LINE_BREAKER = ([\r\n]+)\d+\.\d+
  393. TRANSFORMS-0FIELDS_for_source_wmi = wmi-host, wmi-override-host, wmi-source, wmi-wineventlog-source, wmi-sourcetype, wmi-wineventlog-sourcetype
  394.  
  395. ## Apply the following properties to all WMI events
  396. [source::WMI...]
  397. ## Override default REPORT-MESSAGE with REPORT-0MESSAGE to force alphanumeric precedence
  398. REPORT-0MESSAGE = wel-message, wel-eq-kv, wel-col-kv
  399. REPORT-MESSAGE =
  400. FIELDALIAS-dest_for_wmi = host AS dest
  401. FIELDALIAS-pid_for_wmi = IDProcess AS pid
  402. FIELDALIAS-src_for_wmi = host AS src
  403.  
  404. [wmi]
  405. LINE_BREAKER = ([\r\n]---splunk-wmi-end-of-event---[\r\n]+)
  406. ## Override default TRANSFORMS-FIELDS with TRANSFORMS-0FIELDS to force alphanumeric precedence
  407. ## Override default wmi-host, wmi-source, wmi-sourcetype with the following transforms to strip "WinEventLog"
  408. TRANSFORMS-0FIELDS = wmi-host, wmi-override-host, wmi-source, wmi-wineventlog-source, wmi-sourcetype, wmi-wineventlog-sourcetype
  409. TRANSFORMS-FIELDS =
  410.  
  411. ###### ComputerSystem ######
  412. [WMI:ComputerSystem]
  413. FIELDALIAS-mem_for_wmi_computersystem = TotalPhysicalMemory AS mem
  414.  
  415. [Perfmon:CPU]
  416. EVAL-cpu_load_mhz = if(counter=="Processor Frequency",Value,null())
  417. EVAL-cpu_user_percent = if(counter=="% User Time" AND instance=="_Total",Value,null())
  418. EVAL-cpu_load_percent = if(counter=="% Processor Time" AND instance=="_Total",Value,null())
  419. EVAL-cpu_interrupts = if(counter=="Interrupts/sec" AND instance=="_Total",Value,null())
  420.  
  421. ## Creation of redundant EVAL to avoid tag expansion issue ADDON-10972
  422. EVAL-windows_cpu_load_percent = if(counter=="% Processor Time" AND instance=="_Total",Value,null())
  423.  
  424. ## Legacy fields
  425. EVAL-PercentProcessorTime = if(counter=="% Processor Time",Value,null())
  426. EVAL-PercentUserTime = if(counter=="% User Time",Value,null())
  427.  
  428. [Perfmon:CPUTime]
  429. EVAL-cpu_load_mhz = if(counter=="Processor Frequency",Value,null())
  430. EVAL-cpu_load_percent = if(counter=="% Processor Time",Value,null())
  431. EVAL-cpu_user_percent = if(counter=="% User Time",Value,null())
  432. EVAL-cpu_interrupts = if(counter=="Interrupts/sec",Value,null())
  433.  
  434. ## Creation of redundant EVAL to avoid tag expansion issue ADDON-10972
  435. EVAL-windows_cpu_load_percent = if(counter=="% Processor Time",Value,null())
  436.  
  437. ## Legacy fields
  438. EVAL-PercentProcessorTime = if(counter=="% Processor Time",Value,null())
  439. EVAL-PercentUserTime = if(counter=="% User Time",Value,null())
  440.  
  441. [Perfmon:System]
  442. EVAL-wait_threads_count = if(counter=="Processor Queue Length",Value,null())
  443. EVAL-system_threads_count = if(counter=="Threads",Value,null())
  444.  
  445. [WMI:CPUTime]
  446. REPORT-report_field_extract_wmi_cputime_anomalous = field_extract_wmi_cputime_anomalous
  447.  
  448. FIELDALIAS-cpu_load_percent = PercentProcessorTime AS cpu_load_percent
  449. FIELDALIAS-cpu_user_percent = PercentUserTime AS cpu_user_percent
  450.  
  451. ###### Disk ######
  452. [Perfmon:FreeDiskSpace]
  453.  
  454. FIELDALIAS-mount_for_perfmon_freediskspace = instance AS mount
  455. EVAL-storage_free = if(counter=="Free Megabytes",Value*1048576,null())
  456. EVAL-storage_used_percent = if(counter=="% Free Space",100-Value,null())
  457. EVAL-storage_free_percent = if(counter=="% Free Space",Value,null())
  458.  
  459. ## Creation of redundant EVAL to avoid tag expansion issue ADDON-10972
  460. EVAL-windows_storage_free_percent = if(counter=="% Free Space",Value,null())
  461.  
  462. ## Legacy fields
  463. EVAL-PercentFreeSpace = if(counter=="% Free Space",Value,null())
  464. EVAL-FreeMBytes = if(counter=="Free Megabytes",Value,null())
  465.  
  466. [Perfmon:LogicalDisk]
  467. EVAL-mount = if(instance=="_Total", null(), instance)
  468. # Keeping this field in ms
  469. EVAL-latency = if(counter=="Avg. Disk sec/Transfer",Value*1000,null())
  470. EVAL-read_latency = if(counter=="Avg. Disk sec/Read",Value,null())
  471. EVAL-write_latency = if(counter=="Avg. Disk sec/Write",Value,null())
  472. EVAL-storage_free_percent = if(counter=="% Free Space",Value,null())
  473. EVAL-read_ops = if(counter=="Disk Reads/sec",Value,null())
  474. EVAL-write_ops = if(counter=="Disk Writes/sec",Value,null())
  475. EVAL-total_ops = if(counter=="Disk Transfers/sec",Value,null())
  476.  
  477. [WMI:FreeDiskSpace]
  478. REPORT-report_field_extract_wmi_freediskspace_anomalous = field_extract_wmi_freediskspace_anomalous
  479.  
  480. FIELDALIAS-mount_for_wmi_freediskspace = Name AS mount
  481. EVAL-storage = if(isnotnull(FreeMBytes) AND isnotnull(PercentFreeSpace),(FreeMegabytes*1048576)*(1-(PercentFreeSpace/100)),null())
  482. EVAL-storage_free = if(isnotnull(FreeMegabytes),FreeMegabytes*1048576,null())
  483. FIELDALIAS-storage_free_percent = PercentFreeSpace AS storage_free_percent
  484. EVAL-storage_used = if(isnotnull(FreeMegabytes) AND isnotnull(PercentFreeSpace),((FreeMegabytes*1048576)*(1-(PercentFreeSpace/100)))-FreeMegabytes,null())
  485. EVAL-storage_used_percent = if(isnotnull(PercentFreeSpace),100-PercentFreeSpace,null())
  486.  
  487. ## Legacy fields
  488. FIELDALIAS-FreeMBytes_for_wmi_freediskspace = FreeMegabytes AS FreeMBytes
  489.  
  490. [WMI:LogicalDisk]
  491. FIELDALIAS-for_wmi_latency = AvgDisksecPerTransfer AS latency
  492. FIELDALIAS-for_wmi_read_latency = AvgDisksecPerRead AS read_latency
  493. FIELDALIAS-for_wmi_write_latency = AvgDisksecPerWrite AS write_latency
  494. FIELDALIAS-for_wmi_read_ops = DiskReadsPersec AS read_ops
  495. FIELDALIAS-for_wmi_write_ops = DiskWritesPersec AS write_ops
  496.  
  497. ###### Network ######
  498. [Perfmon:LocalNetwork]
  499. EVAL-thruput = if(counter=="Bytes Total/sec",Value,null())
  500. EVAL-thruput_max = if(counter=="Current Bandwidth",Value,null())
  501.  
  502. [WMI:LocalNetwork]
  503. EVAL-thruput = if(counter=="BytesTotalPerSec",Value,null())
  504. EVAL-thruput_max = if(counter=="CurrentBandwidth",Value,null())
  505.  
  506. ###### Process ######
  507. [Perfmon:Process]
  508. EVAL-process_name = if(instance!="_Total" AND instance!="Idle",instance,null())
  509. EVAL-process_cpu_used_percent = if(instance!="_Total" AND instance!="Idle" AND counter=="% Processor Time", Value, null())
  510. EVAL-process_mem_used = if(instance!="_Total" AND instance!="Idle" AND counter=="Working Set - Private", Value, null())
  511.  
  512.  
  513. ###### Installed Apps ######
  514. [source::...win_installed_apps.bat]
  515. sourcetype = Script:InstalledApps
  516.  
  517. [Script:InstalledApps]
  518. SHOULD_LINEMERGE = false
  519. LINE_BREAKER = ([\r\n]+)\d{2}\/\d{2}\/\d{4}\s+\d{1,2}:\d{2}:\d{2}
  520.  
  521. KV_MODE = none
  522.  
  523. REPORT-AuthorizedCDFPrefix_for_win_installed_apps = AuthorizedCDFPrefix_for_win_installed_apps
  524. REPORT-Comments_for_win_installed_apps = Comments_for_win_installed_apps
  525. REPORT-Contact_for_win_installed_apps = Contact_for_win_installed_apps
  526. REPORT-DisplayVersion_for_win_installed_apps = DisplayVersion_for_win_installed_apps
  527. REPORT-HelpLink_for_win_installed_apps = HelpLink_for_win_installed_apps
  528. REPORT-HelpTelephone_for_win_installed_apps = HelpTelephone_for_win_installed_apps
  529. REPORT-InstallDate_for_win_installed_apps = InstallDate_for_win_installed_apps
  530. REPORT-InstallLocation_for_win_installed_apps = InstallLocation_for_win_installed_apps
  531. REPORT-InstallSource_for_win_installed_apps = InstallSource_for_win_installed_apps
  532. REPORT-ModifyPath_for_win_installed_apps = ModifyPath_for_win_installed_apps
  533. REPORT-NoModify_for_win_installed_apps = NoModify_for_win_installed_apps
  534. REPORT-NoRepair_for_win_installed_apps = NoRepair_for_win_installed_apps
  535. REPORT-Publisher_for_win_installed_apps = Publisher_for_win_installed_apps
  536. REPORT-Readme_for_win_installed_apps = Readme_for_win_installed_apps
  537. REPORT-Size_for_win_installed_apps = Size_for_win_installed_apps
  538. REPORT-EstimatedSize_for_win_installed_apps = EstimatedSize_for_win_installed_apps
  539. REPORT-UninstallString_for_win_installed_apps = UninstallString_for_win_installed_apps
  540. REPORT-URLInfoAbout_for_win_installed_apps = URLInfoAbout_for_win_installed_apps
  541. REPORT-URLUpdateInfo_for_win_installed_apps = URLUpdateInfo_for_win_installed_apps
  542. REPORT-VersionMajor_for_win_installed_apps = VersionMajor_for_win_installed_apps
  543. REPORT-VersionMinor_for_win_installed_apps = VersionMinor_for_win_installed_apps
  544. REPORT-WindowsInstaller_for_win_installed_apps = WindowsInstaller_for_win_installed_apps
  545. REPORT-Version_for_win_installed_apps = Version_for_win_installed_apps
  546. REPORT-Language_for_win_installed_apps = Language_for_win_installed_apps
  547. REPORT-DisplayName_for_win_installed_apps = DisplayName_for_win_installed_apps
  548.  
  549. ###### Installed Updates ######
  550. [WMI:InstalledUpdates]
  551. REPORT-00Description_for_installedupdates = Description_for_installedupdates
  552. FIELDALIAS-signature_id_for_installedupdates = HotFixID AS signature_id
  553. EVAL-signature = case(isnotnull(Description) AND isnotnull(HotFixID),Description." (".HotFixID.")",isnotnull(Description),Description,isnotnull(HotFixID),HotFixID,1=1,null())
  554. LOOKUP-status_for_installedupdates = windows_update_status_lookup sourcetype OUTPUTNEW status
  555. LOOKUP-vendor_info_for_windowsupdatelog = windows_vendor_info_lookup sourcetype OUTPUT vendor,product
  556.  
  557. # Legacy field aliases to support ES 2.0.2
  558. FIELDALIAS-package_title_for_installed_updates = signature AS package_title
  559. FIELDALIAS-package_for_installedupdates = signature_id AS package
  560.  
  561. ###### Listening Ports ######
  562. [source::...win_listening_ports.bat]
  563. sourcetype = Script:ListeningPorts
  564.  
  565. [Script:ListeningPorts]
  566. SHOULD_LINEMERGE = false
  567.  
  568. KV_MODE = None
  569. REPORT-0dest_ip_for_listeningports = dest_ip_for_listeningports
  570. REPORT-1kv_for_listeningports = kv_for_listeningports
  571. FIELDALIAS-dest_for_listeningports = dest_ip AS dest
  572. FIELDALIAS-process_id_for_listeningports = pid AS process_id
  573.  
  574. ###### Local Processes ######
  575. [WMI:LocalProcesses]
  576. REPORT-rep_field_extract_wmi_localprocesses_anomalous = field_extract_wmi_localprocesses_anomalous
  577.  
  578. FIELDALIAS-cpu_load_percent_for_wmi_localprocesses = PercentProcessorTime AS cpu_load_percent
  579. FIELDALIAS-mem_used_for_wmi_localprocesses = PrivateBytes AS UsedBytes
  580. FIELDALIAS-process_for_wmi_localprocesses = Name AS app,Name AS process
  581. FIELDALIAS-process_id_for_wmi_localprocesses = IDProcess AS process_id
  582.  
  583. ###### Memory ######
  584. ## Used memory unavailable in Perfmon Memory object and WMI Win32_PerfFormattedData_PerfOS_Memory
  585. ## Total memory available in WMI:ComputerSystem
  586. [Perfmon:Memory]
  587. EVAL-mem_committed = if(counter=="Committed Bytes",Value,null())
  588. EVAL-mem_free = case(counter=="Available MBytes",Value,counter=="Available Bytes",Value/1048576,1=1,null())
  589. EVAL-swap_free = if(counter=="Pool Nonpaged Bytes",Value,null())
  590. EVAL-swap_used = if(counter=="Pool Paged Bytes",Value,null())
  591. EVAL-mem_page_ops = if(counter=="Pages/sec",Value,null())
  592.  
  593. ## Creation of redundant EVAL to avoid tag expansion issue ADDON-10972
  594. EVAL-windows_mem_free = case(counter=="Available MBytes",Value,counter=="Available Bytes",Value/1048576,1=1,null())
  595.  
  596. [Perfmon:Network]
  597. EVAL-bytes = if(counter=="Bytes Total/sec",Value,null())
  598. EVAL-bytes_in = if(counter=="Bytes Received/sec",Value,null())
  599. EVAL-bytes_out = if(counter=="Bytes Sent/sec",Value,null())
  600. EVAL-packets = if(counter=="Packets/sec",Value,null())
  601. EVAL-packets_in = if(counter=="Packets Received/sec",Value,null())
  602. EVAL-packets_out = if(counter=="Packets Sent/sec",Value,null())
  603.  
  604. ## Legacy Fields
  605. EVAL-FreeMBytes = case(counter=="Available Bytes",Value/1048576,counter=="Available MBytes",Value,1=1,null())
  606. #UsedBytes omitted
  607.  
  608. [WMI:Memory]
  609. REPORT-report_field_extract_wmi_memory_anomalous = field_extract_wmi_memory_anomalous
  610.  
  611. FIELDALIAS-mem_committed_for_wmi_memory = CommittedBytes AS mem_committed
  612. FIELDALIAS-swap_free = PoolNonpagedBytes AS swap_free
  613. FIELDALIAS-swap_used = PoolPagedBytes AS swap_used
  614.  
  615.  
  616. EVAL-mem_free = case(isnotnull(AvailableMBytes),AvailableMBytes,isnotnull(windows_available_bytes),windows_available_bytes/1048576,1=1,null())
  617. ## Creation of redundant EVAL to avoid tag expansion issue ADDON-10972
  618. EVAL-windows_mem_free = case(isnotnull(AvailableMBytes),AvailableMBytes,isnotnull(windows_available_bytes),windows_available_bytes/1048576,1=1,null())
  619.  
  620. ## Legacy Fields
  621. EVAL-FreeMBytes = case(isnotnull(AvailableBytes),AvailableBytes/1048576,isnotnull(AvailableMBytes),AvailableMBytes,1=1,null())
  622. #UsedBytes omitted
  623.  
  624. ###### Service ######
  625. [WMI:Service]
  626. REPORT-report_field_extract_wmi_service_state_anomalous = field_extract_wmi_service_state_anomalous
  627.  
  628. FIELDALIAS-file_path_for_wmi_service = PathName AS file_path
  629. FIELDALIAS-service_for_wmi_service = Name AS app,Name AS service
  630. FIELDALIAS-start_mode_for_wmi_service = StartMode AS start_mode
  631. FIELDALIAS-status_for_wmi_service = State AS status
  632.  
  633. ###### Time Configuration ######
  634. [source::...win_timesync_configuration.bat]
  635. sourcetype = Script:TimesyncConfiguration
  636.  
  637. [Script:TimesyncConfiguration]
  638. DATETIME_CONFIG = CURRENT
  639. LINE_BREAKER = ([\r\n]+)Current time:
  640.  
  641. KV_MODE = None
  642.  
  643. REPORT-Current_time_for_win_timesync_configuration = Current_time_for_win_timesync
  644. REPORT-EventLogFlags_for_win_timesync_configuration = EventLogFlags_for_win_timesync_configuration
  645. REPORT-AnnounceFlags_for_win_timesync_configuration = AnnounceFlags_for_win_timesync_configuration
  646. REPORT-TimeJumpAuditOffset_for_win_timesync_configuration = TimeJumpAuditOffset_for_win_timesync_configuration
  647. REPORT-MinPollInterval_for_win_timesync_configuration = MinPollInterval_for_win_timesync_configuration
  648. REPORT-MaxPollInterval_for_win_timesync_configuration = MaxPollInterval_for_win_timesync_configuration
  649. REPORT-MaxNegPhaseCorrection_for_win_timesync_configuration = MaxNegPhaseCorrection_for_win_timesync_configuration
  650. REPORT-MaxPosPhaseCorrection_for_win_timesync_configuration = MaxPosPhaseCorrection_for_win_timesync_configuration
  651. REPORT-MaxAllowedPhaseOffset_for_win_timesync_configuration = MaxAllowedPhaseOffset_for_win_timesync_configuration
  652. REPORT-FrequencyCorrectRate_for_win_timesync_configuration = FrequencyCorrectRate_for_win_timesync_configuration
  653. REPORT-PollAdjustFactor_for_win_timesync_configuration = PollAdjustFactor_for_win_timesync_configuration
  654. REPORT-LargePhaseOffset_for_win_timesync_configuration = LargePhaseOffset_for_win_timesync_configuration
  655. REPORT-SpikeWatchPeriod_for_win_timesync_configuration = SpikeWatchPeriod_for_win_timesync_configuration
  656. REPORT-LocalClockDispersion_for_win_timesync_configuration = LocalClockDispersion_for_win_timesync_configuration
  657. REPORT-HoldPeriod_for_win_timesync_configuration = HoldPeriod_for_win_timesync_configuration
  658. REPORT-PhaseCorrectRate_for_win_timesync_configuration = PhaseCorrectRate_for_win_timesync_configuration
  659. REPORT-UpdateInterval_for_win_timesync_configuration = UpdateInterval_for_win_timesync_configuration
  660. REPORT-FileLogName_for_win_timesync_configuration = FileLogName_for_win_timesync_configuration
  661. REPORT-FileLogEntries_for_win_timesync_configuration = FileLogEntries_for_win_timesync_configuration
  662. REPORT-FileLogSize_for_win_timesync_configuration = FileLogSize_for_win_timesync_configuration
  663. REPORT-FileLogFlags_for_win_timesync_configuration = FileLogFlags_for_win_timesync_configuration
  664. REPORT-Time_zone_for_win_timesync_configuration = Time_zone_for_win_timesync
  665.  
  666. ###### Time Synchronization ######
  667. [source::...win_timesync_status.bat]
  668. sourcetype = Script:TimesyncStatus
  669.  
  670. [Script:TimesyncStatus]
  671. DATETIME_CONFIG = CURRENT
  672. LINE_BREAKER = ([\r\n]+)Current time:
  673.  
  674. KV_MODE = None
  675.  
  676. REPORT-Current_time_for_win_timesync_status = Current_time_for_win_timesync
  677. REPORT-Leap_Indicator_for_win_timesync_status = Leap_Indicator_for_win_timesync_status
  678. REPORT-Stratum_for_win_timesync_status = Stratum_for_win_timesync_status
  679. REPORT-Precision_for_win_timesync_status = Precision_for_win_timesync_status
  680. REPORT-Root_Delay_for_win_timesync_status = Root_Delay_for_win_timesync_status
  681. REPORT-Root_Dispersion_for_win_timesync_status = Root_Dispersion_for_win_timesync_status
  682. REPORT-ReferenceId_for_win_timesync_status = ReferenceId_for_win_timesync_status
  683. REPORT-Last_Successful_Sync_Time_for_win_timesync_status = Last_Successful_Sync_Time_for_win_timesync_status
  684. REPORT-Source_for_win_timesync_status = Source_for_win_timesync_status
  685. REPORT-Poll_Interval_for_win_timesync_status = Poll_Interval_for_win_timesync_status
  686. REPORT-Phase_Offset_for_win_timesync_status = Phase_Offset_for_win_timesync_status
  687. REPORT-ClockRate_for_win_timesync_status = ClockRate_for_win_timesync_status
  688. REPORT-State_Machine_for_win_timesync_status = State_Machine_for_win_timesync_status
  689. REPORT-Time_Source_Flags_for_win_timesync_status = Time_Source_Flags_for_win_timesync_status
  690. REPORT-Server_Role_for_win_timesync_status = Server_Role_for_win_timesync_status
  691. REPORT-Last_Sync_Error_for_win_timesync_status = Last_Sync_Error_for_win_timesync_status
  692. REPORT-Time_since_Last_Good_Sync_Time_for_win_timesync_status = Time_since_Last_Good_Sync_Time_for_win_timesync_status
  693. REPORT-Time_zone_for_win_timesync_status = Time_zone_for_win_timesync
  694.  
  695. LOOKUP-action_for_win_timesync_status = windows_timesync_action_lookup Last_Sync_Error OUTPUT windows_action, windows_action AS action
  696. EVAL-last_sync_time = strptime(Last_Successful_Sync_Time, "%m/%d/%Y %I:%M:%S %p")
  697. ###### Uptime ######
  698. [WMI:Uptime]
  699. REPORT-report_field_extract_wmi_uptime_anomalous = field_extract_wmi_uptime_anomalous
  700.  
  701. FIELDALIAS-uptime_for_wmi_uptime = SystemUpTime AS uptime
  702.  
  703. ###### User Accounts ######
  704. [WMI:UserAccounts]
  705. FIELDALIAS-dest_nt_domain_for_wmi_useraccounts = Domain AS dest_nt_domain
  706. FIELDALIAS-status_for_wmi_useraccounts = Status AS status
  707. FIELDALIAS-user_for_wmi_useraccounts = Name AS user
  708. FIELDALIAS-user_id_for_wmi_useraccounts = SID AS user_id
  709. LOOKUP-action_for_wmi_user_account_status = wmi_user_account_status_lookup status OUTPUTNEW enabled
  710.  
  711. ###### Version ######
  712. [WMI:Version]
  713. REPORT-0Caption_for_wmi_version = Caption_for_wmi_version
  714. LOOKUP-range_for_wmi_version = wmi_version_range_lookup sourcetype OUTPUTNEW range
  715. FIELDALIAS-os_name_for_wmi_version = Caption AS os_name,Caption AS family
  716. FIELDALIAS-os_version_for_wmi_version = Version AS kernel_release,Version AS os_release,Version AS version
  717. EVAL-os = if(isnotnull(Caption) AND isnotnull(Version),Caption." ".Version,null())
  718.  
  719. ###### Host Inventory ######
  720. [WinHostMon]
  721. EVAL-mem_free_percent = if(Type=="OperatingSystem", if(isNull(TotalPhysicalMemoryKB), null(), if(isNull(FreePhysicalMemoryKB), null(), FreePhysicalMemoryKB/TotalPhysicalMemoryKB * 100)), null())
  722. EVAL-mem_used = if(Type=="OperatingSystem", if(isNull(TotalPhysicalMemoryKB), null(), if(isNull(FreePhysicalMemoryKB), null(), (TotalPhysicalMemoryKB - FreePhysicalMemoryKB)/1024)), null())
  723. EVAL-os = if(Type=="OperatingSystem", OS, null())
  724. EVAL-family = if(Type=="Processor", Architecture, null())
  725. EVAL-version = if(Type=="OperatingSystem", Version, null())
  726. EVAL-cpu_cores = if(Type=="Processor", NumberOfCores, null())
  727. EVAL-cpu_count = if(Type=="Processor", NumberOfProcessors, null())
  728. EVAL-cpu_mhz = if(Type=="Processor", ClockSpeedMHz, null())
  729. EVAL-mem = if(Type=="OperatingSystem", TotalPhysicalMemoryKB/1024, null())
  730. EVAL-vendor_product = if(Type=="OperatingSystem", OS, null())
  731. EVAL-mount = if (Type=="Disk", Name, null())
  732. EVAL-storage = if (Type=="Disk", TotalSpaceKB/1024, null())
  733. EVAL-storage_free = if (Type=="Disk", FreeSpaceKB/1024, null())
  734. EVAL-storage_used = if (Type=="Disk", (TotalSpaceKB-FreeSpaceKB)/1024, null())
  735.  
  736.  
  737. ## Set parameters for the sample data
  738. [source::...Service.wmi.demo]
  739. #, src_for_sample_data, dest_for_sample_data,
  740. SHOULD_LINEMERGE = false
  741. LINE_BREAKER = ([\r\n]+)\d+\.\d+
  742. TRANSFORMS-0FIELDS_for_source_wmi_demo_sample = wmi_host_for_sample_data, wmi-source, wmi-wineventlog-source, wmi-sourcetype, wmi-wineventlog-sourcetype
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement