top of page


What Splunk is and what it is used for
Learn what Splunk is, how it turns logs and machine data into searches, charts and alerts, and where it is used in IT and security.
WeValuate
15 hours ago3 min read


Forgot the admin password? How to reset the admin password in Splunk
As is common in IT, we don't write our passwords down. Unless your password is 1q2w3e4r, you probably won't remember it and will need this procedure. To reset the admin password in Splunk, go to the password file (passwd) at $SPLUNK_HOME/etc/passwd). Rename this file so you can restore it if any step of the procedure fails. # cd /opt/splunk/etc # ls # mv /opt/splunk/etc/passwd /opt/splunk/etc/passwd.old Now we create a new configuration file to force a new password for the
WeValuate
1 day ago1 min read


Enriching Data with External Sources - The lookup Command
Our logs don't always have all the information we need for an analysis. Sometimes the logs only contain sets of IDs that mean nothing on their own, but that have an external source with their "translation". One way to use this kind of information is with Splunk's lookup commands, which let us use predefined tables to enrich our data through a field that shares values with our index. Taking the logs provided on Splunk's website as an example, our index has events related to pu
WeValuate
1 day ago2 min read


Creating dashboards in Splunk
Creating dashboards is one of the most common tasks in Splunk. Used to highlight the information collected and processed with Splunk, dashboards can be a powerful tool, or a way to weigh down the environment and create unnecessary work. We can discuss this in more depth later, especially regarding user experience, but in this post we will cover the main ways to create dashboards. The list of an app's dashboards in Splunk is usually in the "Dashboards" menu, where you can also
WeValuate
1 day ago2 min read


Manual data input
There are several ways to send data to Splunk, which will be covered in more detail in upcoming posts. Here we will show how to manually input the sample logs used here on the blog. On its website, Splunk provides the logs of a fictitious online store called Buttercup Games, updated daily and in text format. These files can be found here. After downloading them, open the Splunk server in your browser, go to Settings and then to Add Data. On the page that opens, choose the Upl
WeValuate
1 day ago2 min read


Creating dashboards in Splunk - Understanding the XML
As we saw in this post, a dashboard's structure is built from standard XML code with specific sections for each element we are working with. When we create a dashboard in Splunk, we get a structure similar to the one below: <dashboard>: Template <label>: Dashboard title <row>: defines each row of charts <panel>: defines each panel <title>: chart title/subtitle <chart>: chart type <search> defines the search <query>: search </query> <earliest>timepicker ear
WeValuate
1 day ago2 min read


Working with time series - The timechart command
One way to analyze time series in Splunk is the command timechart. This command performs a statistical aggregation on a field to build charts, with time as the X axis. The timechart command accepts the same functions and clauses as stats. The example below shows a simple count over the data in the web index for the whole available time range. index=web | timechart count You can now open the Visualization tab to see the chart created by this command. In this example, the data
WeValuate
1 day ago1 min read


Working with statistical functions - Mean, median and mode with the stats command
In this post, we will look at the statistical concepts of the measures of central tendency for numeric sets: mean, median and mode. The mean is the sum of the values of all the elements in a numeric set divided by the number of elements in the set. In Splunk terms, when we have a numeric field, all of its values are added up and the result is divided by the number of events that have this field. See the following example, using a field that records the number of bytes transfe
WeValuate
1 day ago2 min read


Working with statistical functions - The stats command
In a Splunk event, we have fields that hold the values extracted from each part of the event. Among the main things we can do with these fields is counting and displaying their values, which is where the statistical analysis of our data begins. The stats command is one of Splunk's main and most versatile commands. It starts this analysis by producing counts, sums, mode, mean, median and other functions that we will look at in detail. Starting with the stats command, let's run
WeValuate
1 day ago2 min read


Tabulating fields with the "Table" command
Splunk treats your data as events and displays them as lines or in json format, according to the timestamp of each event. This view is not very practical, since you have to look for the parts of the log that hold the values of the fields shown in the left sidebar. That's where this command comes in: table. The table command tabulates the fields available in the search, making the data easier to view. Below is an example of the table command, creating a table with the data fro
WeValuate
1 day ago2 min read


Selecting fields - The fields command
All data that goes into Splunk is turned into events, and each part of an event is assigned to a specific field. The fields command lets you select or remove any field in our field list, which directly affects query performance. To select the fields to use, pass the fields command the list of fields to keep, as in the following example: index=web | fields action, clientip, host, status Similarly, we can use the minus sign (-) to remove fields from the list: index=web | fields
WeValuate
1 day ago1 min read
bottom of page