ksconf merge

Merge two or more .conf files into a single combined .conf file. This could be used to merge the props.conf file from ALL technology addons into a single file:

ksconf merge –target=all-ta-props.conf etc/apps/TA/{default,local}/props.conf

usage: ksconf merge [-h] [--target FILE] [--dry-run] [--banner BANNER]
                    FILE [FILE ...]

Positional Arguments

FILE The source configuration file to pull changes from.

Named Arguments

--target, -t Save the merged configuration files to this target file. If not provided. the the merged conf is written to standard output.
--dry-run, -D Enable dry-run mode. Instead of writing to TARGET, preview changes in ‘diff’ format. If TARGET doesn’t exist, then show the merged file.
--banner, -b A banner or warning comment added to the top of the TARGET file. This is often used to warn Splunk admins from editing an auto-generated file.