A security team needs to ingest a static file for a specific incident. The log file has not been collected previously and future updates to the file must not be indexed. Which command would meet these needs?
Correct Answer: A
The correct answer is A. splunk add one shot / opt/ incident [data . log -index incident According to the Splunk documentation1, the splunk add one shot command adds a single file or directory to the Splunk index and then stops monitoring it. This is useful for ingesting static files that do not change or update. The command takes the following syntax: splunk add one shot <file> -index <index_name> The file parameter specifies the path to the file or directory to be indexed. The index parameter specifies the name of the index where the data will be stored. If the index does not exist, Splunk will create it automatically. Option B is incorrect because the splunk edit monitor command modifies an existing monitor input, which is used for ingesting files or directories that change or update over time. This command does not create a new monitor input, nor does it stop monitoring after indexing. Option C is incorrect because the splunk add monitor command creates a new monitor input, which is also used for ingesting files or directories that change or update over time. This command does not stop monitoring after indexing. Option D is incorrect because the splunk edit oneshot command does not exist. There is no such command in the Splunk CLI. References:1:Monitor files and directories with inputs.conf - Splunk Documentation
SPLK-1003 Exam Question 17
What is the correct example to redact a plain-text password from raw events?
Correct Answer: B
The correct answer is B. in props.conf: [identity] SEDCMD-redact_pw = s/password=([^,|/s]+)/ ####REACTED####/g According to the Splunk documentation1, to redact sensitive data from raw events, you need to use the SEDCMD attribute in the props.conf file. The SEDCMD attribute applies a sed expression to the raw data before indexing. The sed expression can use the s command to replace a pattern with a substitution string. For example, the following sed expression replaces any occurrence of password= followed by any characters until a comma, whitespace, or slash with ####REACTED####: s/password=([^,|/s]+)/ ####REACTED####/g The g flag at the end means that the replacement is applied globally, not just to the first match. Option A is incorrect because it uses the REGEX attribute instead of the SEDCMD attribute. The REGEX attribute is used to extract fields from events, not to modify them. Option C is incorrect because it uses the transforms.conf file instead of the props.conf file. The transforms. conf file is used to define transformations that can be applied to fields or events, such as lookups, evaluations, or replacements. However, these transformations are applied after indexing, not before. Option D is incorrect because it uses both the wrong attribute and the wrong file. There is no REGEX- redact_pw attribute in the transforms.conf file. References:1:Redact data from events - Splunk Documentation
SPLK-1003 Exam Question 18
When enabling data integrity control, where does Splunk Enterprise store the hash files for each bucket?
Correct Answer: B
* Data integrity controls in Splunk ensure that indexed data has not been tampered with. * When enabled, Splunk calculates hashes for each bucket and stores these hash files in the rawdata directory of the corresponding bucket. * Incorrect Options: * A, C, D:These directories do not store hash files. References: Splunk Docs: Configure data integrity controls
SPLK-1003 Exam Question 19
A configuration file in a deployed app needs to be directly edited. Which steps would ensure a successful deployment to clients?
Correct Answer: C
According to the Splunk documentation1, to customize a configuration file, you need to create a new file with the same name in a local or app directory. Then, add the specific settings that you want to customize to the local configuration file. Never change or copy the configuration files in the default directory. The files in the default directory must remain intact and in their original location. The Splunk Enterprise upgrade process overwrites the default directory. To deploy configuration files to deployment clients, you need to use the deployment server. The deployment server is a Splunk Enterprise instance that distributes content and updates to deployment clients2. The deployment server uses a directory called $SPLUNK_HOME/etc/deployment-apps to store the apps and configuration files that it deploys to clients2. To update the configuration files in this directory, you need to edit them manually and then run the command $SPLUNK_HOME/bin/sp1unk reload deploy-server to make the changes take effect2. Therefore, option A is incorrect because it does not include the reload command. Option B is incorrect because it makes the change on a deployment client instead of the deployment server. Option D is incorrect because it changes the default directory instead of the local directory. References: 1: How to edit a configuration file - Splunk Documentation 2: Deployment of configuration files - Splunk Community
SPLK-1003 Exam Question 20
What action is required to enable forwarder management in Splunk Web?
Correct Answer: C
Reference:https://docs.splunk.com/Documentation/Splunk/8.2.1/Updating/Forwardermanagementoverview https://docs.splunk.com/Documentation/MSApp/2.0.3/MSInfra/Setupadeploymentserver "To activate deployment server, you must place at least one app into %SPLUNK_HOME%\etc\deployment- apps on the host you want to act as deployment server. In this case, the app is the "send to indexer" app you created earlier, and the host is the indexer you set up initially.