Last Updated: May 4th, 2018
If you're looking for Splunk Interview Questions & Answers for Experienced or Freshers, you are at right place. There are lot of opportunities from many reputed companies in the world. According to research Splunk has a market share of about 36.2%. So, You still have opportunity to move ahead in your career in Splunk. Mindmajix offers Advanced Splunk Interview Questions 2018 that helps you in cracking your interview & acquire dream career as Splunk Developer.
Advanced Splunk Developer Interview Questions & Answers 2018
|Compare Splunk and Elastic Stack|
|Log Management||Highly supported||Highly supported|
|Robust Search||Capable of robust search||Capable of robust search|
|Deployment steps||Easy to deploy||Easy to deploy|
|Dashboard features||Offers more features than ELK||Relatively less when compared to Splunk|
|Community support||Highly professional community to support||Open Source has more benefits due to huge user base|
|Latest Version||Splunk 6.5||Elastic Stack 5.0|
|Pricing||Offers enterprise editions||Open Source|
|APIs supported/built on||RESTful API and 200 plus endpoints||RESTFul API and JSON|
|Third party integrations||App portal provides 1000s of add-ons||Plethora of integrations and plugins|
Q1) What is Splunk?
Splunk is Google for your machine data. It’s a software/Engine which can be used for searching, visualizing, Monitoring, reporting etc of your enterprise data. Plunk takes valuable machine data and turns it into powerful operational intelligence by providing real time insight to your data through charts, alerts, reports etc.
|Compare Hadoop HDFS vs. Splunk Cloud|
|Splunk Cloud||Hadoop HDFS|
|Cloud-based service||Distributed file system designed to run on commodity hardware|
|Splunk is a tool||Hadoop is a framework|
|Collect and Index Data||File System Namespace|
|Splunk is a log analysis platform||Hadoop is BigData file system|
|Devices Supported: Windows, Android, iPhone/iPad, Mac||Devices Supported: Windows, Mac
|Splunk DB Connect||Browser Interface|
|Splunk App for Stream||DFSAdmin|
|Splunk mainly monitor, log, and analyse machine generated big data.||Hadoop is ideal for ETL and storage of data in HDFS and streamlining analysis|
|Splunk is an integrated solution for data analysis||Hadoop is an implementation of the Map Reduce paradigm|
|Hadoop Collects the Data, and passes the results to Splunk for Visualization|
Q3) What are common port numbers used by Splunk?
Below are common port numbers used by splunk, however you can change them if required
|Service||Port number Used|
|Splunk Web Port||8000|
|Splunk Management Port||8089|
|Splunk Indexing Port||9997|
|Splunk Index Replication Port||8080|
|Splunk network port||514 (Used to get data in from netwok port i.e. UDP data)|
Q4) What are components of splunk/splunk architecture?
Below are components of splunk:
Q5) Which is latest splunk version in use?
|Big player in the log management tool space||An open source log management tool||SaaS version of Splunk|
|On-Premises Model||SaaS||Used as part of the ELK stack along with ElasticSearch and Kibana|
|Installation: Setting it up locally||Installation: Setting up a communication out to the Sumo Logic cloud||Installation: Setting it all up on your own system|
|Need to plan for the hardware and space capacities that you will need.||Need to configure the sources that will gather and send the logs to Sumo Logic||Need to configure the inputs, filters, and outputs that you’ll want|
|Extensive amount of features are available||Has a good chunk of similar features to Splunk||Logstash gives you the most control over the tools between devloepment & Community|
|Can create and manage your own dashboards||Uses a panel-based dashboard system||On its own, Logstash doesn’t give you dashboards at all|
|Dashboards can be built in either XML code or through the Splunk dashboard editor||Most of the information is presented in a chart-based manner||As part of the ELK stack, Kibana is used as frontend reporting & visualization, metrics tools, such as Graphite, Librato, and DataDog.|
|600+ Integration Plugins available||Includes development automation tools, cloud platforms, OS platforms, and compliance and security tools||Logstash has a continuously growing plugin environment, over 160 plugins available|
|Pricing - $1800 – $60,000 per year||Pricing - Free lite version, Entry level pricing is friendlier||Pricing - Free, avail paid subscriptions also|
Q7) What is splunk indexer? What are stages of splunk indexing?
The indexer is the Splunk Enterprise component that creates and manages indexes. The primary functions of an indexer are:
Q8) What is a splunk forwarder and what are types of splunk forwarder?
There are two types of splunk forwarder as below
Q9) what are most important configuration files of splunk OR can you tell name of few important configuration files in splunk?
Q10) What are types of splunk licenses?
Q11) What is splunk app?
Splunk app is container/directory of configurations, searches, dashboards etc in splunk
Q12) Where splunk default configuration does is stored?
Q13) What features are not available in splunk free?
Splunk free lacks these features:
Q14) what happens if the license master is unreachable?
License slave will start a 24-hour timer, after which search will be blocked on the license slave (though indexing continues). Users will not be able to search data in that slave until it can reach license master again
Q15) what is summary index in splunk?
The Summary index is the default summary index (the index that plunk Enterprise uses if you do not indicate another one). If you plan to run a variety of summary index reports you may need to create additional summary indexes.
Related Page:: Learn Splunk Apps and Add-ons and its benefits?
Q16) What is splunk DB connect?
Splunk DB Connect is a generic SQL database plugin for Splunk that allows you to easily integrate database information with Splunk queries and reports.
Q17) Can you write down a general regular expression for extracting ip address from logs?
There are multiple ways we can extract ip address from logs. Below are few examples.
Regular Expression for extracting ip address:
Q18) What is difference between stats vs transaction command?
The transaction command is most useful in two specific cases:
Unique id (from one or more fields) alone is not sufficient to discriminate between two transactions. This is the case when the identifier is reused, for example web sessions identified by cookie/client IP. In this case, time span or pauses are also used to segment the data into transactions. In other cases when an identifier is reused, say in DHCP logs, a particular message may identify the beginning or end of a transaction.
When it is desirable to see the raw text of the events combined rather than analysis on the constituent fields of the events.
In other cases, it’s usually better to use stats as the performance is higher, especially in a distributed search environment. Often there is a unique id and stats can be used.
Q19) How to troubleshoot splunk performance issues?
Answer to this question would be very wide but basically interviewer would be looking for following keywords in interview:
Q20) What are buckets? Explain splunk bucket lifecycle?
Splunk places indexed data in directories, called as “buckets”. It is physically a directory containing events of a certain period. A bucket moves through several stages as it ages:
By default, your buckets are located in $SPLUNK_HOME/var/lib/splunk/defaultdb/db. You should see the hot-db there, and any warm buckets you have. By default, Splunk sets the bucket size to 10GB for 64bit systems and 750MB on 32bit systems.
Q21) What is the different between stats and eventstats commands?
Stats command generate summary statistics of all existing fields in your search results and save them as values in new fields. Eventstats is similar to the stats command, except that aggregation results are added inline to each event and only if the aggregation is pertinent to that event.
eventstats computes the requested statistics like stats, but aggregates them to the original raw data.
Q22) Who are the biggest direct competitors to Splunk?
logstash, Loggly, Loglogic, sumo logic etc..
Q23) Splunk licenses specify what?
How much data you can index per calendar day
Q24) How does splunk determine 1 day, from a licensing perspective?
Midnight to midnight on the clock of the license master
Q25) How are forwarder licenses purchased?
They are included with splunk, no need to purchase separately
Q26) What is command for restarting just the splunk webserver?
Splunk start splunkweb
Q27) What is command for restarting just the splunk daemon?
Splunk start splunkd
Q28) What is command to check for running splunk processes on unix/Linux ?
ps aux | grep splunk
Q29) What is Command to enable splunk to boot start?
$SPLUNK_HOME/bin/splunk enable boot-start
Q30 How to disable splunk boot start?
$SPLUNK_HOME/bin/splunk disable boot-start
Q31) What is sourcetype in splunk?
Sourcetype is splunk way of identifying data
Q32) How to reset splunk admin password?
To reset your password log in to server on which splunk is installed and rename passwd file at below location and then restart splunk. After restart you can login using default username:admin password:changeme
Q33) How to disable splunk launch message?
Set value OFFENSIVE=Less in splunk_launch.conf
Q34) How to clear splunk search history?
Delete following file on splunk server
Q35) What is btool or how will you troubleshoot splunk configuration files?
Splunk btool is a command line tool that helps us to troubleshoot configuration file issues or just see what values are being used by your Splunk Enterprise installation in existing environment.
Q36) What is difference between splunk app and splunk add on?
Basically both contains preconfigured configuration and reports etc, but splunk add on do not have visual app. Splunk apps have preconfigured visual app.
Q37) What is .conf files precedence in splunk?
File precedence is as follows:
Q38) What is fishbucket or what is fishbucket index?
It’s a directory or index at default location /opt/splunk/var/lib/splunk .It contains seek pointers and CRCs for the files you are indexing, so splunkd can tell if it has read them already. We can access it through GUI by seraching for “index=_thefishbucket”
Q39) How do i exclude some events from being indexed by Splunk?
This can be done by defining a regex to match the necessary event(s) and send everything else to nullqueue. Here is a basic example that will drop everything except events that contain the string login In props.conf:
# Transforms must be applied in this order
# to make sure events are dropped on the
# floor prior to making their way to the
# index processor
[setnull] REGEX = . DEST_KEY = queue FORMAT = nullQueue
REGEX = login
DEST_KEY = queue
FORMAT = indexQueue
Q40) How can I tell when splunk is finished indexing a log file?
By watching data from splunk’s metrics log in real-time.
index=”_internal” source=”*metrics.log” group=”per_sourcetype_thruput” series=”” | eval MB=kb/1024 | chart sum(MB)
or to watch everything happening split by sourcetype….
index=”_internal” source=”*metrics.log” group=”per_sourcetype_thruput” | eval MB=kb/1024 | chart sum(MB) avg(eps) over series
And if you’re having trouble with a data input and you want a way to troubleshoot it, particularly if your whitelist/blacklist rules arent working the way you expect, go to this URL: HTTPS://YOURSPLUNKHOST:8089/SERVICES/ADMIN/INPUTSTATUS
Q41) How to set the default search time in Splunk 6?
To do this in Splunk Enterprise 6.0, use ui-prefs.conf. If you set the value in
$SPLUNK_HOME/etc/system/local, all your users should see it as the default setting. For example, if your
$SPLUNK_HOME/etc/system/local/ui-prefs.conf file includes:
dispatch.earliest_time = @d
dispatch.latest_time = now
The default time range that all users will see in the search app will be today.
The configuration file reference for ui-prefs.conf is here: HTTP://DOCS.SPLUNK.COM/DOCUMENTATION/SPLUNK/LATEST/ADMIN/UI-PREFSCONF
Q42) What is dispatch directory?
$SPLUNK_HOME/var/run/splunk/dispatch contains a directory for each search that is running or has completed. For example, a directory named 1434308943.358 will contain a CSV file of its search results, a search.log with details about the search execution, and other stuff. Using the defaults (which you can override in limits.conf), these directories will be deleted 10 minutes after the search complfetes – unless the user saves the search results, in which case the results will be deleted after 7 days.
Q43) What is difference between search head pooling and search head clustering?
Both are features provided splunk for high availability of splunk search head in case anyone search head goes down. Search head cluster is newly introduced and search head pooling will be removed in next upcoming versions. Search head cluster is managed by captain and captain controls its slaves. Search head cluster is more reliable and efficient than search head pooling.
Q44) If I want add/onboard folder access logs from a windows machine to splunk how can I add same?
Below are steps to add folder access logs to splunk
Q45) How would you handle/troubleshoot splunk license violation warning error?
License violation warning means splunk has indexed more data than our purchased license quota. We have to identify which index/sourcetype has received more data recently than usual daily data volume. We can check on splunk license master pool wise available quota and identify the pool for which violation is occurring. Once we know the pool for which we are receiving more data then we have to identify top sourcetype for which we are receiving more data than usual data. Once sourcetype is identified then we have to find out source machine which is sending huge number of logs and root cause for the same and troubleshoot accordingly.
Q46) What is MapReduce algorithm?
MapReduce algorithm is secret behind splunk fast data searching speed. It’s an algorithm typically used for batch based large scale parallelization. It’s inspired by functional programming’s map() and reduce () functions.
Q47) How splunk avoids duplicate indexing of logs?
At indexer splunk keeps track of indexed events in a directory called fish buckets (default location /opt/splunk/var/lib/splunk). It contains seek pointers and CRCs for the files you are indexing, so splunkd can tell if it has read them already. – See more at: https://www.learnsplunk.com/splunk-indexer-configuration.html#sthash.t1ixi19P.dpuf.
Q48) What is difference between splunk SDK and splunk framework?
Splunk SDKs are designed to allow you to develop applications from the ground up and not require Splunk Web or any components from the Splunk App Framework. These are separately licensed to you from the Splunk Software and do not alter the Splunk Software.
Splunk App Framework resides within Splunk’s web server and permits you to customize the Splunk Web UI that comes with the product and develop Splunk apps using the Splunk web server. It is an important part of the features and functionalities of Splunk Software, which does not license users to modify anything in the Splunk Software.
Get Updates on Tech posts, Interview & Certification questions and training schedules