SlideShare a Scribd company logo
1 of 29
Bengaluru User Group
WELCOME
5th Sep 2020
स्वागत
স্বাগত
ಸ್ವಾಗತ
स्वागत आहे
స్వాగతவரவவற்பு
സ്വാഗതം
ਸਵਾਗਤ ਹੈ
સ્વાગત છે
‫آمدید‬ ‫خوش‬
ସ୍ୱାଗତ
‫آیا‬ ‫ڪري‬ ‫ڀلي‬
https://conf.splunk.com/
https://www.youtube.com/watch?v=C8UzEaF2OwQ
https://events.splunk.com/the-splunkies-2020
The Data Heroes Award
The Home-Office-Hero Award
The Innovation Award The Developer Award
The Community Award
The Ecosystem Award
Get your nominations in by September 18th
Housekeeping
Join #splunk_bengaluru_usergroup on Slack http://splk.it/slack
Use #splunk_bengaluru_usergroup for Q&A during the session
Please keep your lines muted when not speaking
Slides, recording & feedback form will be posted to the Events page
Splunk Bengaluru User Group
https://usergroups.splunk.com/bengaluru-splunk-user-group/
© 2019 SPLUNK INC.
Sandeep Sarkar
Senior Consultant (Mercedes-Benz India)
Splunk Upgrade Through Ansible
5th Sept 2020
Agenda
Topics for today
Why Splunk Upgrade is Important ?
How to Plan your Upgrade ?
What is Ansible ?
Configure your Ansible environment
Code Walkthrough – Ansible
Demo
Q & A
Why Splunk Upgrades are required!
Mitigate the Security Risks of older versions!
Meet the Auditing requirement
Version Out of Support
We want new features!
Fix some known bugs by moving to a newer version
Plan Plan & again Plan!
How to find a needle in multiple haystacks?
(choose your tool)
Discover Prepare Test in Dev/QA Upgrade Verify
• Understand your
Architecture .
• Create Inventory with
Splunk versions.
• Determine your
destination versions
• Create app compatibility
matrix with your intended
Upgrade version
• Backup Splunk
configurations.
• System Health Check.
• Check for any SSL
connectivity issues with
current & intended version.
Plan your upgrade thoroughly
• Test your upgrade scripts in
QA or Dev environment.
• Verify your planning.
• Upgrade in the order
described by the Splunk
docs.
• Upgrade Cluster Master.
• Upgrade Search head
tier.
• Upgrade Peer node tier.
• Upgrade Forwarder tier
• Verify the system health.
• Verify the log streams.
• Verify the roles/functions of
each server.
Upgrade
Master Node
a. Stop the master
i. /opt/splunk/bin/splunk stop
b. Take backup
i. tar -zcvf backup_splunk.tar.gz /opt/splunk/etc/
c. Copy new package in in /opt directory as root
d. Run rpm command to install
i. rpm -U --nodeps --prefix=/opt/splunk-<version>-<build>-
linux-2.6-x86_64.rpm
or ii. tar -xvzf splunk-<version>-<build>-Linux-x86_64.tgz -
C /opt/
e. Start splunk now accepting license as root user
i. /opt/splunk/bin/splunk start --accept-license --answer-yes
f. Enable boot start
i. /opt/splunk/bin/splunk enable boot-start -user splunk
g. Stop Splunk as root user
i. /opt/splunk/bin/splunk stop
h. Change user to Splunk
i. su splunk
I. Start Splunk
i. /opt/splunk/bin/splunk start
j. View the master dashboard to verify that all cluster nodes are up and
running.
Upgrade
Search Head
Tier
a. Stop all cluster members
i. /opt/splunk/bin/splunk stop
b. Take backup
i. tar -zcvf backup_splunk.tar.gz /opt/splunk/etc
c. Take backup of KV Store
i. /opt/splunk/bin/splunk backup kvstore –archiveName
<archive>
d. Upgrade all members
i. Follow steps c to h from “Upgrade the master node” section
e. Stop the deployer
i. /opt/splunk/bin/splunk stop
f. Take backup
i. tar -zcvf backup_splunk.tar.gz /opt/splunk/
g. Upgrade the deployer
i. Follow steps c to h from “Upgrade the master node” section
h. Start the deployer
i. Start the members
Upgrade
Peer Node
tier
a. Run splunk enable maintenance-mode on the master
b. Confirm the above step using splunk show maintenance-mode
c. Stop all the peer nodes
d. Take backup
e. Upgrade the peer nodes
i. Follow steps c to h from “Upgrade the master node” section
f. Start the peer nodes
g. Run splunk disable maintenance-mode
h. Confirm the above step using splunk show maintenance-mode
Ansible
Ansible is an open-source software
provisioning & configuration
management tool.
Ansible is agentless, works via
connecting remotely through SSH or
Windows Remote Management
(allowing remote PowerShell execution)
to do its tasks.
Ansible uses push mechanism
Ansible uses YAML syntax to
describe the automation tasks.
Ansible
Setup
Install Ansible
• sudo apt install ansible –yes
• https://docs.ansible.com/ansible/latest/install
ation_guide/intro_installation.html
Configure Your environment to Use
Ansible
• Create your ssh-keygen & share it with all
your target hosts
Create the directory Structure
• Create the variable files required for the
playbooks to run
• Copy the installer files into a specific
directory
• Install or verify python version (pexpect
module)
Ansible
Setup
More Videos Refer to Session Recording for video walkthrough: https://youtu.be/UkbfTjIovjw?t=968
Ansible
Setup
More Videos
Refer to Session Recording for video walkthrough: https://youtu.be/UkbfTjIovjw?t=1063
Refer to Session Recording for video walkthrough: https://youtu.be/UkbfTjIovjw?t=1258
Code
walkthrough
Master YAML
Code
Walkthrough
Cluster Master YAML
1
2 3
Code
Walkthrough
Search Head YAML
12
3
Code
walkthrough
Indexers YAML
Code
Walkthrough
Windows YAML
1
2
3
Demo
Upgrade Splunk!
Refer to Session Recording for video walkthrough: https://youtu.be/UkbfTjIovjw?t=1948
© 2020 SPLUNK INC.
Further
resources Splunk Upgrade Steps –
https://docs.splunk.com/Documentation/Splunk/latest/Instal
lation/HowtoupgradeSplunk
Register for upcoming .conf20 session –
TRU1504C - Ansible Starter Pack for Automating Splunk
Administration
Mason Morales, Sr. Manager, Splunk@Splunk, Splunk
Installing Ansible –
https://docs.ansible.com/ansible/latest/installation_guide/int
ro_installation.html#selecting-an-ansible-version-to-install
© 2020 SPLUNK INC.
Q&A
Raise hand to be unmuted Post questions in WebEx
Chat
Join Slack for Q&A
http://splk.it/slack
© 2020 SPLUNK INC.
Contribute, Collaborate and win
#splunk_bengaluru_usergroup
• Token of appreciation for the Speakers in the Community
event
Sandeep Sarkar
• Monthly reward for winners of Challenges posted in Slack
Sanjeev Reddy
http://splk.it/slack
© 2020 SPLUNK INC.
Challenges on Slack
#splunk_bengaluru_usergroup
Rule for participation*
• Must have attended User Group Session and Checked In.
• In the Slack thread only mention challenge# attempted (do not answer in Slack chat).
• Send personal note on Slack with actual answer or email.
• Winner will be based on first one to get max. correct answer.
• If you have already won previously in last 12 sessions, preference will be given to second best
answer.
• Answers to challenges from August Bengaluru User Group session posted on Slack.
• Challenges from September session posted on Slack.
http://splk.it/slack
© 2020 SPLUNK INC.
Community Resources
Splunk Community Resources (Both Official and Unofficial)
Splunk > Clara-fication: Splunk Community: https://www.splunk.com/en_us/blog/tips-
and-tricks/splunk-clara-fication-splunk-community.html
We plan to meet 1st Saturday of every month at 11:00 AM IST.
Please provide feedback for :
• Sessions and improvements.
• Topics to be covered in future sessions.
• Let us know if you are interested in presenting in User Group.
Keep the comradery through Slack and Splunk Answers>
What’s Next
http://splk.it/slack http://community.splunk.com
https://conf.splunk.com
Splunk .Conf 2020 registrations are open: Oct 20th and 21st (Virtual)
Thank You

More Related Content

Similar to Splunk bangalore user group 2020 09 01

Managing-Splunk-with-Puppet 31-January-2022.pdf
Managing-Splunk-with-Puppet 31-January-2022.pdfManaging-Splunk-with-Puppet 31-January-2022.pdf
Managing-Splunk-with-Puppet 31-January-2022.pdfssusera181ef
 
SpringOne Platform recap 정윤진
SpringOne Platform recap 정윤진SpringOne Platform recap 정윤진
SpringOne Platform recap 정윤진VMware Tanzu Korea
 
Splunk metrics via telegraf
Splunk metrics via telegrafSplunk metrics via telegraf
Splunk metrics via telegrafAshvin Pandey
 
Vietnam qa meetup
Vietnam qa meetupVietnam qa meetup
Vietnam qa meetupSyam Sasi
 
NI Package Manager
NI Package ManagerNI Package Manager
NI Package ManagerDMC, Inc.
 
CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...
CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...
CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...Daniel Krook
 
CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...
CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...
CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...Animesh Singh
 
A Lap Around Developer Awesomeness in Splunk 6.3
A Lap Around Developer Awesomeness in Splunk 6.3A Lap Around Developer Awesomeness in Splunk 6.3
A Lap Around Developer Awesomeness in Splunk 6.3Glenn Block
 
Implementing CI CD UiPath Using Jenkins Plugin
Implementing CI CD UiPath Using Jenkins PluginImplementing CI CD UiPath Using Jenkins Plugin
Implementing CI CD UiPath Using Jenkins PluginSatish Prasad
 
Splunk n-box-splunk conf-2017
Splunk n-box-splunk conf-2017Splunk n-box-splunk conf-2017
Splunk n-box-splunk conf-2017Mohamad Hassan
 
Clockify Add-on for Splunk.pptx
Clockify Add-on for Splunk.pptxClockify Add-on for Splunk.pptx
Clockify Add-on for Splunk.pptxVikram Kumar Yadav
 
SplunkLive! Amsterdam 2015 - Web Framework & 3rd Party Visualization
SplunkLive! Amsterdam 2015 - Web Framework & 3rd Party VisualizationSplunkLive! Amsterdam 2015 - Web Framework & 3rd Party Visualization
SplunkLive! Amsterdam 2015 - Web Framework & 3rd Party VisualizationSplunk
 
Jenkins introduction
Jenkins introductionJenkins introduction
Jenkins introductionGourav Varma
 
Jenkins introduction
Jenkins introductionJenkins introduction
Jenkins introductionKalkey
 
Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...
Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...
Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...Nagios
 
StreamSets DataOps Platform Fundamentals.pptx
StreamSets DataOps Platform Fundamentals.pptxStreamSets DataOps Platform Fundamentals.pptx
StreamSets DataOps Platform Fundamentals.pptxssuser4c04eb
 
.Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013
.Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013 .Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013
.Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013 Tikal Knowledge
 
Splunk: Forward me the REST of those shells
Splunk: Forward me the REST of those shellsSplunk: Forward me the REST of those shells
Splunk: Forward me the REST of those shellsAnthony D Hendricks
 
Fullstack workshop
Fullstack workshopFullstack workshop
Fullstack workshopAssaf Gannon
 

Similar to Splunk bangalore user group 2020 09 01 (20)

Managing-Splunk-with-Puppet 31-January-2022.pdf
Managing-Splunk-with-Puppet 31-January-2022.pdfManaging-Splunk-with-Puppet 31-January-2022.pdf
Managing-Splunk-with-Puppet 31-January-2022.pdf
 
SpringOne Platform recap 정윤진
SpringOne Platform recap 정윤진SpringOne Platform recap 정윤진
SpringOne Platform recap 정윤진
 
Splunk metrics via telegraf
Splunk metrics via telegrafSplunk metrics via telegraf
Splunk metrics via telegraf
 
Vietnam qa meetup
Vietnam qa meetupVietnam qa meetup
Vietnam qa meetup
 
NI Package Manager
NI Package ManagerNI Package Manager
NI Package Manager
 
CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...
CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...
CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...
 
CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...
CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...
CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...
 
A Lap Around Developer Awesomeness in Splunk 6.3
A Lap Around Developer Awesomeness in Splunk 6.3A Lap Around Developer Awesomeness in Splunk 6.3
A Lap Around Developer Awesomeness in Splunk 6.3
 
Implementing CI CD UiPath Using Jenkins Plugin
Implementing CI CD UiPath Using Jenkins PluginImplementing CI CD UiPath Using Jenkins Plugin
Implementing CI CD UiPath Using Jenkins Plugin
 
Splunk n-box-splunk conf-2017
Splunk n-box-splunk conf-2017Splunk n-box-splunk conf-2017
Splunk n-box-splunk conf-2017
 
Clockify Add-on for Splunk.pptx
Clockify Add-on for Splunk.pptxClockify Add-on for Splunk.pptx
Clockify Add-on for Splunk.pptx
 
SplunkLive! Amsterdam 2015 - Web Framework & 3rd Party Visualization
SplunkLive! Amsterdam 2015 - Web Framework & 3rd Party VisualizationSplunkLive! Amsterdam 2015 - Web Framework & 3rd Party Visualization
SplunkLive! Amsterdam 2015 - Web Framework & 3rd Party Visualization
 
Admin SharePoint 2010 with PowerShell
Admin SharePoint 2010 with PowerShellAdmin SharePoint 2010 with PowerShell
Admin SharePoint 2010 with PowerShell
 
Jenkins introduction
Jenkins introductionJenkins introduction
Jenkins introduction
 
Jenkins introduction
Jenkins introductionJenkins introduction
Jenkins introduction
 
Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...
Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...
Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...
 
StreamSets DataOps Platform Fundamentals.pptx
StreamSets DataOps Platform Fundamentals.pptxStreamSets DataOps Platform Fundamentals.pptx
StreamSets DataOps Platform Fundamentals.pptx
 
.Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013
.Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013 .Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013
.Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013
 
Splunk: Forward me the REST of those shells
Splunk: Forward me the REST of those shellsSplunk: Forward me the REST of those shells
Splunk: Forward me the REST of those shells
 
Fullstack workshop
Fullstack workshopFullstack workshop
Fullstack workshop
 

Recently uploaded

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 

Recently uploaded (20)

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 

Splunk bangalore user group 2020 09 01

  • 1. Bengaluru User Group WELCOME 5th Sep 2020 स्वागत স্বাগত ಸ್ವಾಗತ स्वागत आहे స్వాగతவரவவற்பு സ്വാഗതം ਸਵਾਗਤ ਹੈ સ્વાગત છે ‫آمدید‬ ‫خوش‬ ସ୍ୱାଗତ ‫آیا‬ ‫ڪري‬ ‫ڀلي‬
  • 3. https://events.splunk.com/the-splunkies-2020 The Data Heroes Award The Home-Office-Hero Award The Innovation Award The Developer Award The Community Award The Ecosystem Award Get your nominations in by September 18th
  • 4. Housekeeping Join #splunk_bengaluru_usergroup on Slack http://splk.it/slack Use #splunk_bengaluru_usergroup for Q&A during the session Please keep your lines muted when not speaking Slides, recording & feedback form will be posted to the Events page Splunk Bengaluru User Group https://usergroups.splunk.com/bengaluru-splunk-user-group/
  • 5. © 2019 SPLUNK INC. Sandeep Sarkar Senior Consultant (Mercedes-Benz India) Splunk Upgrade Through Ansible 5th Sept 2020
  • 6. Agenda Topics for today Why Splunk Upgrade is Important ? How to Plan your Upgrade ? What is Ansible ? Configure your Ansible environment Code Walkthrough – Ansible Demo Q & A
  • 7. Why Splunk Upgrades are required! Mitigate the Security Risks of older versions! Meet the Auditing requirement Version Out of Support We want new features! Fix some known bugs by moving to a newer version
  • 8. Plan Plan & again Plan! How to find a needle in multiple haystacks? (choose your tool) Discover Prepare Test in Dev/QA Upgrade Verify • Understand your Architecture . • Create Inventory with Splunk versions. • Determine your destination versions • Create app compatibility matrix with your intended Upgrade version • Backup Splunk configurations. • System Health Check. • Check for any SSL connectivity issues with current & intended version. Plan your upgrade thoroughly • Test your upgrade scripts in QA or Dev environment. • Verify your planning. • Upgrade in the order described by the Splunk docs. • Upgrade Cluster Master. • Upgrade Search head tier. • Upgrade Peer node tier. • Upgrade Forwarder tier • Verify the system health. • Verify the log streams. • Verify the roles/functions of each server.
  • 9. Upgrade Master Node a. Stop the master i. /opt/splunk/bin/splunk stop b. Take backup i. tar -zcvf backup_splunk.tar.gz /opt/splunk/etc/ c. Copy new package in in /opt directory as root d. Run rpm command to install i. rpm -U --nodeps --prefix=/opt/splunk-<version>-<build>- linux-2.6-x86_64.rpm or ii. tar -xvzf splunk-<version>-<build>-Linux-x86_64.tgz - C /opt/ e. Start splunk now accepting license as root user i. /opt/splunk/bin/splunk start --accept-license --answer-yes f. Enable boot start i. /opt/splunk/bin/splunk enable boot-start -user splunk g. Stop Splunk as root user i. /opt/splunk/bin/splunk stop h. Change user to Splunk i. su splunk I. Start Splunk i. /opt/splunk/bin/splunk start j. View the master dashboard to verify that all cluster nodes are up and running.
  • 10. Upgrade Search Head Tier a. Stop all cluster members i. /opt/splunk/bin/splunk stop b. Take backup i. tar -zcvf backup_splunk.tar.gz /opt/splunk/etc c. Take backup of KV Store i. /opt/splunk/bin/splunk backup kvstore –archiveName <archive> d. Upgrade all members i. Follow steps c to h from “Upgrade the master node” section e. Stop the deployer i. /opt/splunk/bin/splunk stop f. Take backup i. tar -zcvf backup_splunk.tar.gz /opt/splunk/ g. Upgrade the deployer i. Follow steps c to h from “Upgrade the master node” section h. Start the deployer i. Start the members
  • 11. Upgrade Peer Node tier a. Run splunk enable maintenance-mode on the master b. Confirm the above step using splunk show maintenance-mode c. Stop all the peer nodes d. Take backup e. Upgrade the peer nodes i. Follow steps c to h from “Upgrade the master node” section f. Start the peer nodes g. Run splunk disable maintenance-mode h. Confirm the above step using splunk show maintenance-mode
  • 12. Ansible Ansible is an open-source software provisioning & configuration management tool. Ansible is agentless, works via connecting remotely through SSH or Windows Remote Management (allowing remote PowerShell execution) to do its tasks. Ansible uses push mechanism Ansible uses YAML syntax to describe the automation tasks.
  • 13. Ansible Setup Install Ansible • sudo apt install ansible –yes • https://docs.ansible.com/ansible/latest/install ation_guide/intro_installation.html Configure Your environment to Use Ansible • Create your ssh-keygen & share it with all your target hosts Create the directory Structure • Create the variable files required for the playbooks to run • Copy the installer files into a specific directory • Install or verify python version (pexpect module)
  • 14. Ansible Setup More Videos Refer to Session Recording for video walkthrough: https://youtu.be/UkbfTjIovjw?t=968
  • 15. Ansible Setup More Videos Refer to Session Recording for video walkthrough: https://youtu.be/UkbfTjIovjw?t=1063 Refer to Session Recording for video walkthrough: https://youtu.be/UkbfTjIovjw?t=1258
  • 21. Demo
  • 22. Upgrade Splunk! Refer to Session Recording for video walkthrough: https://youtu.be/UkbfTjIovjw?t=1948
  • 23. © 2020 SPLUNK INC. Further resources Splunk Upgrade Steps – https://docs.splunk.com/Documentation/Splunk/latest/Instal lation/HowtoupgradeSplunk Register for upcoming .conf20 session – TRU1504C - Ansible Starter Pack for Automating Splunk Administration Mason Morales, Sr. Manager, Splunk@Splunk, Splunk Installing Ansible – https://docs.ansible.com/ansible/latest/installation_guide/int ro_installation.html#selecting-an-ansible-version-to-install
  • 24. © 2020 SPLUNK INC. Q&A Raise hand to be unmuted Post questions in WebEx Chat Join Slack for Q&A http://splk.it/slack
  • 25. © 2020 SPLUNK INC. Contribute, Collaborate and win #splunk_bengaluru_usergroup • Token of appreciation for the Speakers in the Community event Sandeep Sarkar • Monthly reward for winners of Challenges posted in Slack Sanjeev Reddy http://splk.it/slack
  • 26. © 2020 SPLUNK INC. Challenges on Slack #splunk_bengaluru_usergroup Rule for participation* • Must have attended User Group Session and Checked In. • In the Slack thread only mention challenge# attempted (do not answer in Slack chat). • Send personal note on Slack with actual answer or email. • Winner will be based on first one to get max. correct answer. • If you have already won previously in last 12 sessions, preference will be given to second best answer. • Answers to challenges from August Bengaluru User Group session posted on Slack. • Challenges from September session posted on Slack. http://splk.it/slack
  • 27. © 2020 SPLUNK INC. Community Resources Splunk Community Resources (Both Official and Unofficial) Splunk > Clara-fication: Splunk Community: https://www.splunk.com/en_us/blog/tips- and-tricks/splunk-clara-fication-splunk-community.html
  • 28. We plan to meet 1st Saturday of every month at 11:00 AM IST. Please provide feedback for : • Sessions and improvements. • Topics to be covered in future sessions. • Let us know if you are interested in presenting in User Group. Keep the comradery through Slack and Splunk Answers> What’s Next http://splk.it/slack http://community.splunk.com https://conf.splunk.com Splunk .Conf 2020 registrations are open: Oct 20th and 21st (Virtual)