SlideShare a Scribd company logo
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.pdf
ssusera181ef
 
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 telegraf
Ashvin Pandey
 
Vietnam qa meetup
Vietnam qa meetupVietnam qa meetup
Vietnam qa meetup
Syam Sasi
 
NI Package Manager
NI Package ManagerNI Package Manager
NI Package Manager
DMC, 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.3
Glenn 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 Plugin
Satish Prasad
 
Splunk n-box-splunk conf-2017
Splunk n-box-splunk conf-2017Splunk n-box-splunk conf-2017
Splunk n-box-splunk conf-2017
Mohamad Hassan
 
Clockify Add-on for Splunk.pptx
Clockify Add-on for Splunk.pptxClockify Add-on for Splunk.pptx
Clockify Add-on for Splunk.pptx
Vikram 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 Visualization
Splunk
 
Admin SharePoint 2010 with PowerShell
Admin SharePoint 2010 with PowerShellAdmin SharePoint 2010 with PowerShell
Admin SharePoint 2010 with PowerShell
Concentrated Technology
 
Jenkins introduction
Jenkins introductionJenkins introduction
Jenkins introduction
Gourav Varma
 
Jenkins introduction
Jenkins introductionJenkins introduction
Jenkins introduction
Kalkey
 
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.pptx
ssuser4c04eb
 
.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 shells
Anthony D Hendricks
 
Fullstack workshop
Fullstack workshopFullstack workshop
Fullstack workshop
Assaf 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

Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
TIPNGVN2
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 

Recently uploaded (20)

Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 

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)