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


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


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