This guide helps you diagnose and resolve common issues with the Splunk App Deployer.
- Quick Diagnostics
- Common Issues
- Platform-Specific Issues
- Splunk-Related Issues
- App Structure Issues
- Permission Problems
- Getting Help
# Check Python version (should be 3.6+)
python3 --version
# Verify help system works
python3 splunk_app_deployer.py --help
# Check current directory structure
pwd && ls -la# Check if Splunk is running
ps aux | grep splunk
# Check Splunk installation paths
ls -la /opt/splunk # Linux
ls -la /Applications/Splunk # macOS
dir "C:\Program Files\Splunk" # Windows# View recent deployment logs
ls -lt logs/
tail -20 logs/deployment_*.log
# Search for errors
grep -i "error\|fail" logs/deployment_*.logSymptoms: Script reports no valid apps in source directory
Solutions:
Check app structure:
# Verify required files exist
ls -la your_app/default/app.conf
ls -la your_app/metadata/default.metaCreate missing files:
# Minimal app.conf
cat > your_app/default/app.conf << 'EOF'
[launcher]
version = 1.0.0
[package]
id = your_app
[ui]
is_visible = true
label = Your App
EOF
# Minimal default.meta
cat > your_app/metadata/default.meta << 'EOF'
[]
access = read : [ * ], write : [ admin, power ]
export = system
EOFLinux/macOS Solutions:
# Check current permissions
whoami && id
# Add user to splunk group
sudo usermod -a -G splunk $USER
# Or run with appropriate permissions
sudo python3 splunk_app_deployer.pyWindows Solutions:
# Run PowerShell as Administrator
# Right-click PowerShell → "Run as Administrator"
python splunk_app_deployer.pyFind Splunk Installation:
# Common Linux locations
ls -la /opt/splunk /home/splunk/splunk
# Common macOS locations
ls -la /Applications/Splunk /Users/splunk/splunk
# Common Windows locations
dir "C:\Program Files\Splunk" "C:\Splunk"Specify Custom Path:
python3 splunk_app_deployer.py --splunk-home /your/custom/pathCheck app.conf format:
cat your_app/default/app.conf
# Should contain: [launcher] section with version = X.Y.ZFix version format:
# Use semantic versioning: 1.0.0, 1.2.3, 2.0.0
sed -i 's/version = .*/version = 1.0.0/' your_app/default/app.confManual restart commands:
# Linux/macOS
/opt/splunk/bin/splunk restart
# Windows
"C:\Program Files\Splunk�in\splunk.exe" restart
# Check status
/opt/splunk/bin/splunk statusSELinux Problems:
# Check and temporarily disable
sestatus
sudo setenforce 0File System Permissions:
# Check disk space and fix ownership
df -h
sudo chown -R splunk:splunk /opt/splunkSecurity/Gatekeeper:
# Remove quarantine if present
xattr -d com.apple.quarantine splunk_app_deployer.pyPython PATH:
# Ensure Python is in PATH
export PATH="/usr/local/bin:$PATH"
which python3PowerShell Execution Policy:
# Check and set execution policy
Get-ExecutionPolicy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserPath Separators:
# Use forward slashes or escaped backslashes
python splunk_app_deployer.py --splunk-home "C:/Program Files/Splunk"Check app status:
/opt/splunk/bin/splunk display app your_app
/opt/splunk/bin/splunk enable app your_appRefresh Splunk:
- Go to Settings > Server Settings > Server Settings
- Click Refresh next to "App and add-on management"
- Or restart Splunk completely
Check permissions in metadata/default.meta:
cat your_app/metadata/default.meta
# Should include proper export settings for views, savedsearchesValidate XML syntax:
# Check dashboard files
xmllint --noout your_app/default/data/ui/views/*.xmlCorrect minimal structure:
your_app/
├── default/
│ ├── app.conf # Required
│ └── data/ # Optional
├── metadata/
│ └── default.meta # Required
├── bin/ # Optional
└── static/ # Optional
Fix structure:
# Create missing directories
mkdir -p your_app/{default,metadata,bin,static}
# Move files to correct locations
mv your_app/*.conf your_app/default/
mv your_app/*.meta your_app/metadata/# Check current ownership
ls -la /opt/splunk/etc/apps/your_app
# Fix ownership
sudo chown -R splunk:splunk /opt/splunk/etc/apps/your_app
# Set proper permissions
sudo chmod -R 644 /opt/splunk/etc/apps/your_app
sudo chmod 755 /opt/splunk/etc/apps/your_app- Settings > Apps > Manage Apps
- Find your app and click Permissions
- Set appropriate sharing (App or Global)
- Configure user access as needed
System Information:
# OS and Python version
uname -a # Linux/macOS
systeminfo | findstr OS # Windows
python3 --version
# Splunk version
/opt/splunk/bin/splunk versionError Details:
# Capture complete error output
python3 splunk_app_deployer.py 2>&1 | tee error_output.txt
# Recent deployment logs
tail -50 logs/deployment_*.log-
Self-Help:
- Review this troubleshooting guide
- Check User Guide for usage help
- Read Developer Guide for customization
-
Community Support:
- GitHub Issues - Bug reports
- GitHub Discussions - Q&A
-
Direct Contact:
- General Questions: opensource-kris@moosequest.net
- Security Issues: security@moosequest.net
- Review this guide for your specific issue
- Check recent logs for error messages
- Verify basic setup (Python version, Splunk installation)
- Test with a minimal example (single small app)
- Collect diagnostic information listed above
When contacting support, include:
- Complete error messages
- System information (OS, Python, Splunk versions)
- Recent log files
- Steps to reproduce the issue
- What you've already tried
Most issues can be resolved with the information in this guide. For additional help, reach out through the support channels above! 🚀