Best Practices and Better Practices For Admins
Best Practices and Better Practices For Admins
▶ Latest Slides:
• https://splunk.box.com/v/blueprints-practices-admin
▶ Collaborate: #bestpractices
• Sign Up @ http://splk.it/slack
The forward-looking statements made in this presentation are being made as of the time and date of its live
presentation. If reviewed after its live presentation, this presentation may not contain current or accurate
information. We do not assume any obligation to update any forward looking statements we may make. In
addition, any information about our roadmap outlines our general product direction and is subject to change at
any time without notice. It is for informational purposes only and shall not be incorporated into any contract or
other commitment. Splunk undertakes no obligation either to develop the features or functionality described or
to include any such feature or functionality in a future release.
Splunk, Splunk>, Listen to Your Data, The Engine for Machine Data, Splunk Cloud, Splunk Light and SPL are trademarks and registered trademarks of Splunk Inc. in
the United States and other countries. All other brand names, product names, or trademarks belong to their respective owners. © 2017 Splunk Inc. All rights reserved.
© 2017 SPLUNK INC.
Blueprint’s Mission
What’s a “Burch”?
Senior Best Practices Engineer
1. User Management
2. Data Onboarding
3. Splunk Health
4. Config Management
Agenda
Are you in the right 5. App & TA Creation
place?
6. Architecture
7. Search Tier
8. Indexing Tier
9. Securing Splunk
User Management
User Education & Enablement
▶ Creating Content:
• Teaching + Videos + Wikis
▶ Outsource it to us!
• Capture unique things
© 2017 SPLUNK INC.
Search Tutorial
Free Search Tutorial -> docs.splunk.com -> Search Tutorial
▶ Local sandbox
▶ E-mail notifications
▶ Fast answers
▶ Larger distribution
App as Workspace
▶ Examples:
• Scheduled restart
• Ongoing issues
• Cool KO to check out
▶ Specific audiences
• Role
• Capability
BAU Account ▶ Use non-admin account
▶ Admin on MC
Data Onboarding
Log Management
Solicit Constructive Discussion
earliest _index_earliest
▶ Search over last 5min every 5min but
latest _index_latest there’s a 10min delay in _indextime
▶ Open Cases
• break/fix only
• Details, details, details
• Diags everywhere!
• Remote
• Upload to case
▶ Schedule webex
• Delay and much lost in email
Monitoring Console Setup
docs.splunk.com -> Splunk Enterprise -> Administer -> Monitoring Splunk Enterprise
Point & Purpose
Renamed from “Distributed
Management Console (DMC)”
▶ Standalone instance
▶ Search Activity:
• Top 20 Memory-Consuming Searches
▶ Great for
• Clean up
• Identifying users to mature
Config Management
To btool, or not to btool
▶ No “.conf”
Example: Benefit
▶ <company>
• Yours or from a 3rd party/splunk app
▶ <function>
• Nothing that changes (i.e. organization/teams)
▶ <environment>
• PROD, DR, QA, TEST, DEV, etc…
▶ <summary|>
• Exists as a modifying of corresponding index
App Management
What practices do you notice?
Burch_configbackup_ta Burch_license_client_ta Burch_splunkUpgrade_ta
Burch_CustomerOverview Burch_license_server_ta Burch_splunk_admin
Burch_datacollection_ta Burch_master_ta Burch_splunk_default
Burch_deployer_ta Burch_multisite_site1_ta Burch_splunk_developer
Burch_deploymentserver_ta Burch_multisite_site2_ta Burch_splunk_power
Burch_dmc_ta Burch_sandbox_ta Burch_splunk_user
Burch_dreamhost_ta Burch_searchheadcluster_ta Burch_stopdeploymentclient_ta
Burch_es_ta Burch_searchhead_distributed_ta Burch_utility_ta
Burch_forwarder_ta Burch_searchhead_ta Burch_zglobal_ta
Burch_heavyforwarder_ta Burch_searchtimeko_ta
Burch_indexer_ta Burch_splunkAdmin_nix_ta
Bootstrap
Minimal system/local
2. Bootstrap
• Point to DS/Master/Deployer
• system/local overwritten by apps
• Centralized control
• Global App < Function Apps
▶ Logical Separation:
• Role Based Access Control
• Separate indexes per env
• Use eventtypes/tags
▶ forwardedindex.filter.disable
Data Distribution Quirks
▶ Forwarders:Indexers Ratio
▶ autoLBVolume + autoLBFrequency
Data Collection Tier
Practices whether push or pull data
▶ Easier to scale
• Vertical (VM specs)
• Horizontal (cheaper than indexers)
• Load balancer (not hardcoded)
▶ n00b ▶ Ninja
Ninja: Debug This
Where’s Waldo eval max_runtime?!
n00b: Debug This
Keyboard Command: Ctrl + \ or Command + \
Search Interface Improvements
user-prefs.conf with export = system
Default Suggestion
SHC Need 2 Knows
“So…I can’t just treat it like a Deployment Server?!”
Benefits Caveats
Example: Benefit
Benefits Challenges
Pros Cons
[volume:home]
▶ volume:
path = $SPLUNK_DB
maxVolumeDataSizeMB =
▶ maxVolumeDataSizeMB
[volume:cold]
path = $SPLUNK_DB • Indexes compete for storage
maxVolumeDataSizeMB =
[default]
▶ [default]
homePath = volume:home/$_index_name/db
coldPath = volume:cold/$_index_name/colddb ▶ [newindex]
thawedPath = $SPLUNK_DB/$_index_name/thaweddb
[newindex] ▶ $_index_name
Buckets, and TSIDX, and Data Roll…
Hadoop Data Roll vs MiniTSIDX
Securing Splunk
Security Through Obscurity
docs.splunk.com “Securing Splunk Enterprise”
▶ Auditable Logins
• Empty $SPLUNK_HOME/etc/passwd and $SPLUNK_HOME/etc/.ui_login
• Distribute authentication.conf
1. User Management
2. Data Onboarding
3. Splunk Health
4. Config Management
Wrap Up
5. App & TA Creation
6. Architecture
7. Search Tier
8. Indexing Tier
9. Securing Splunk
© 2017 SPLUNK INC.