The flags such as exclude as explained in http://docs.splunk.com/Documentation/Splunk/6.0/Troubleshooting/ContactSplunkSupport don't work for version 6.0.
./splunk diag --exclude */passwd
Command error: '*/passwd' is not a valid command. Please run 'splunk help' to see the valid commands.
This is a known issue SPL-75535 and fixed in 6.0.1 for version 6.0 workaround is :
./splunk cmd python $SPLUNK-HOME/lib/python2.7/site-packages/splunk/clilib/info_gather.py --exclude */passwd
This is a known issue SPL-75535 and fixed in 6.0.1 for version 6.0 workaround is :
./splunk cmd python $SPLUNK-HOME/lib/python2.7/site-packages/splunk/clilib/info_gather.py --exclude */passwd