This blog demonstrates how to dynamically set field names based on values in your Splunk events, and set them to corresponding field values. This requires a unique configuration, as opposed to doing traditional field extractions with static field names.
Let’s Get Started
For this example, let’s say we have the following events with the sourcetype test_sourcetype:
By default, Splunk will extract these fields as follows:
field_name = response_code
field_value = 200
But what if we want the fields extracted like this?
response_code = 200
Rather than creating a custom, static field name, and extracting a corresponding value, Splunk provides the ability to extract both the field name AND value, and apply them accordingly. This is done using field transformations applied to our sourcetype.
Field Transformations
The first thing we need to do is create a regular expression to capture the fields of interest. Our initial regex looks like this:
This regex extracts the desired fields, but by itself, sets them in 2 fields, field_name and field_value respectively. In order to have the value of field_name be our field name, and the value of field_value be the corresponding field value, we need adjust our regex to use specific syntax that Splunk expects for the transformation. This involves using KEY and VAL to extract and correlate the field/value pair.
The value of <string> specified in _KEY_<string> and _VAL_<string> will ensure the field name extracted is set to the field value extracted. In order to implement we can add our transformation:
Navigate to Settings > Fields > Field transformations and provide the following then Save.
Next we set our field extraction to the appropriate sourcetype, to use the above transformation. To start, navigate to Fields > Field extractions:
Name: test_extraction
Apply to sourcetype named test_sourcetype
Type: Uses transform
Extraction/Transform: testing_extraction
The above values should match the sourcetype of the data you are extracting these fields from. The value of Extraction/Transform MUST match the name of the Field Transformation. Once saved, running a search on the sourcetype will show the field names and values extracted and available to filter on.
Note, this can NOT be done directly in SPL at search time. It must be done via field transformation. You may also need to check permissions on both the field transformation AND field extraction so that users can use the new fields.
You should now be able to dynamically set field names based on values in your Splunk events, and set them to corresponding field values. As always, we are available if you have any questions – just fill out the form below:
As the CEO of TekStream, cybersecurity is on my mind every day. And it must be for you as well. It seems we can’t go a day without word of another breach taking place, with the cost to individuals and to corporations rising with each incident. We are fortunate, here, to have a team of the best cybersecurity experts in the business who use Splunk, AWS and other tools to create a safe environment for our employees and our data.
Not every company has the luxury or the budget for best-in-class digital security. Often, an IT generalist is tasked with the first defense measures against threats, with best of intentions and a set of foundational basics that kick the ball down the field a bit. We ask a lot of our teams in this category, and for every alarming thought we have on the subject, they have two.
Fatigue and fear of the unknown creep in eventually, though, and with alarming infiltrations and new complexities coming from threat actors our staff can get underwater quickly.
There are answers out there, though. After a consultation with our security team, we can give you a roadmap to security and a platform for future growth and innovation.
It starts with our security assessment. This program gives you visibility into your current posture, fidelity measurement of your responses and a strategy and communication plan. Members of your IT, security and C-Suite will take away a clear view of current security gaps and a plan for remediation.
Next, our team will assess security architecture, tools, and resources, creating a documented incident response process, security policy and related documents. This three-to-five-week engagement builds the foundation for your digital assets. After stakeholder interviews, the collaborative assessment delivers an optimized resource allocation model and remediation roadmaps, prioritized by risk and complexity.
Some of our clients choose 24/7 coverage by our team, some choose a combination approach and some take the reins fully. With training and tools, the options are limitless.
With the freedom of security comes innovation. The modern data platform gives way to GenAI, machine learning and other artificial intelligence protocols that can vault your firm into the next level of performance and efficiency.
By Judd Robins, Executive Vice President, Sales & Marketing
Renewing my car tag should have been quick. But a cyberattack unexpectedly compromised Atlanta, GA’s (Fulton County) digital infrastructure. It paralyzed the local government’s digital systems, making routine tasks like paying water bills, accessing records and renewing a car tag impossible.
The financial impact was steep, with an estimated $10-15 million cost to restore services plus another $10 million to harden the county’s cybersecurity infrastructure against future attacks (according to WSB Channel 2). As a local resident and cybersecurity executive, this attack hit close to home.
The Escalating Attack on Public Data
Cyberattacks, like the one in Fulton County, have become commonplace. Many public sector organizations are particularly vulnerable due to aging IT applications and very tight budgets.
In 2023, 2,365 reported cyberattacks affected over 343 million victims. This represents a staggering 72% increase in data breaches since 2021, which previously held the record for the most breaches. And there’s more:
These statistics highlight the escalating scope of cyber threats and the urgent need for enhanced security solutions — solutions that my team at TekStream provides to safeguard private and public organizations, like Fulton County, from debilitating cyberattacks.
A Call to Action: How Organizations Like Fulton County Can Protect Themselves
No organization — public or private — is 100% secure. Many struggle to stay ahead of cyber threats, grapple with workforce shortages and often lack the necessary security coverage for their specific environments. At TekStream, we’ve been tackling these challenges for years and have tailored our cybersecurity solutions to address them effectively.
Using our Visibility, Fidelity and Automation (VFA) framework within a collaborative Splunk security environment, our MDR services assess and enhance clients’ security maturity. This strategic approach allows us to identify critical areas that require immediate attention, ensuring that security measures are precisely aligned with each organization’s unique needs.
One of the key tools in our solution set of particular interest to government and educational IT departments is our deployment of a Shared Security Operations Center (Shared SOC). This innovative model allows multiple public sector teams to collaborate, sharing resources and intelligence.
The Shared SOC not only broadens the scope of threat detection but also enhances the collective response capabilities, significantly strengthening the cybersecurity posture across organizations at a reduced cost of operations. Coincident with deploying a Shared SOC is our approach to addressing the significant gap in skilled cybersecurity professionals.
Our SOC capabilities include providing supervised on-the-job training (OJT) of client personnel by our experienced MDR specialists, rapidly upskilling new entrants and enhancing the abilities of current team members. This initiative helps overcome the severe shortage in skilled cybersecurity talent and prepares teams to effectively counter and manage evolving cyber threats.
An example of this model in action is the work we have done with Louisiana State University (LSU ) to set up their cybersecurity infrastructure through a Shared SOC. This collaborative effort between LSU, the university system and the state, has allowed LSU to significantly enhance its threat detection and response capabilities while developing the next generation of cybersecurity talent.
At TekStream, we’re constantly working with clients to deploy creative solutions to enhance public sector cybersecurity cost effectively. Our goal is simple: to enable organizations to respond to threats while proactively anticipating and managing them.
The results ensure that public entities are well-equipped to protect their critical digital infrastructures and the services provided to the constituents they serve.
Securing Tomorrow
Cyberattacks, like the one we experienced in Fulton County, demonstrate the vulnerability of our digital infrastructures. They disrupt essential services and personal safety.
As part of a team that works hard to thwart these attacks, my car tag nightmare was a reminder of the importance of the work we do. It’s also a call for all public sector entities like Fulton County to aggressively seek solution partners like us to prevent the massive costs and disruptions that all the citizens of Fulton had to endure.
To learn more about options to secure your cyber assets, read our guide, The Cybersecurity Paradox: Billions Spent but Breaches Boom. Or contact us for an evaluation of how your organization can cost-effectively secure its applications and better serve its constituents with a customized MDR solution.
Data is the lifeblood of any organization, and harnessing its insights is paramount for making informed decisions. In the realm of data analytics, Splunk stands out as a powerful tool for searching, monitoring, and analyzing vast datasets.
However, as datasets grow in size and complexity, the efficiency of your Splunk Search Processing Language (SPL) queries becomes a critical factor in unlocking the true potential of your data.
In this blog post, we delve into the art of writing efficient SPL queries—strategies and best practices that not only enhance the speed of your searches but also contribute to a more streamlined and effective Splunk experience. Whether you are a seasoned Splunk veteran or just embarking on your data analytics journey, understanding how to optimize your SPL queries is a valuable skill set.
In Splunk SPL, data is stored in indexes and the index command is used to specify the index or indexes from which you want to retrieve data. It is best practice to start your query with this command unless you are using another generating command. Here are scenarios and use cases where you would use the index command:
Data Segmentation
When your Splunk environment contains multiple indexes, you use the index command to segment your search to a specific index or a set of indexes. This is essential for isolating your search to a particular data source.
index=your_index sourcetype=your_sourcetype
Efficient Searches Across Indexes
If you need to search across multiple indexes, you can use the index command to specify a list of indexes. This is useful when your data is distributed across different indexes based on sources or use cases and ensures that Splunk only scans the relevant indexes, improving the efficiency of your queries.
index=index1
OR
index=index2
Remember that the index command is a fundamental component of SPL and is often used in conjunction with other commands and criteria to tailor searches to your specific needs. Whether you’re conducting ad-hoc searches or building complex queries for monitoring and reporting, incorporating the index command allows you to precisely target and retrieve the data you require.
After using the index command in Splunk SPL to specify a particular index or set of indexes, you can further refine and reduce the dataset using additional SPL commands and criteria. Here are several techniques to narrow down and focus your search:
Specify Sourcetype or Source
After filtering by index, you can refine your search by specifying a particular sourcetype or source. This is particularly useful when you want to focus on a specific type of data within the selected index.
index=your_index sourcetype=your_sourcetype
Time Range Restriction
Limit the search to a specific time range using the earliest and latest parameters. This reduces the volume of data processed, enhancing search performance.
Utilize field-based filtering to narrow down your search results based on specific field values. This is effective when looking for events that match certain criteria.
Use regular expressions to filter events based on complex patterns or substrings. This is useful when you need to match events that follow a specific format. You can use a regex command for example to keep only the results that match a valid email address like [email protected].
In this next section we will look at the different architectures in Splunk and how we can take advantage of those architectures to write even more efficient SPL. But first, a little background information explaining the differences between a standalone and distributed environments.
In Splunk, the terms “standalone” and “distributed” refer to different deployment architectures that organizations can adopt based on their data processing and scalability requirements. Let’s explore the key differences between a standalone and distributed environment in Splunk:
Standalone Environment
Single Instance:
In a standalone environment, there is a single Splunk instance. This instance performs all functions, including indexing, searching, and serving the user interface.
Indexing and Searching on the Same Instance:
In a standalone deployment, the indexing and searching processes take place on the same machine. This simplicity is beneficial for smaller use cases but can be a limiting factor as data volumes increase resulting in slower SPL execution times.
Distributed Environment
Multiple Components:
In a distributed environment, the Splunk deployment is composed of multiple components, each responsible for specific functions. Common components include indexers, search heads, and forwarders.
Indexing and Searching on many Instances:
Since every distributed environment contains more than one indexer and possibly more than one search head, searches can be distributed across all the indexers to effectively run your SPL in parallel on the indexers and each indexer runs the same SPL on its dataset. This results in lightning fast execution times compared to running the same SPL on a Single Instance.
But this potential gain of the distributed environment can only be utilized if the SPL commands are arranged for maximum efficiency. This is because only certain commands can be run on the indexers and other commands can only be run on the search heads and once one of the search head only commands is reached then all subsequent commands must be run on the one search head which reduces efficiency. Unfortunately, search head commands are not distributed across all search heads in search head cluster environments.
Distributable Streaming Commands
This type of command can run on the indexers. Here are the most common distributed streaming commands….
But as not all Splunk commands are distributable streaming commands, it is important to make sure that all preceding commands are distributable streaming commands. This will keep the SPL running on the indexers.
Transforming Commands
This type of command can only be run on search heads;
As you can see in order to accomplish one of these commands the instance running this command must have the entire dataset and once one of these commands is reached, then all the results from the indexers are sent to the one search head which from that point on completes the remaining query regardless of the type of command used.
So it is important as you write your SPL to run as much as you can on the indexers as long as possible before using a transforming command. Because once a transforming command is used all subsequent commands are run on the search head and the benefit of parallel processing is lost.
Execution Speed Calculation
You can always check to see how long it takes to run your search by looking at the Job Inspector. Here is how to do that:
In conclusion, mastering the art of writing efficient Splunk SPL (Search Processing Language) is pivotal for unlocking the full potential of this powerful analytics platform. Efficient SPL not only accelerates search performance but also enhances the overall user experience, enabling quick and accurate insights into your data.
This blog details a step-by-step process on how to create and run a prediction model with Splunk MLTK. The use case explained is specifically showing how to predict the number of incident tickets created for an Operations Team during a busy holiday time, so the team can prepare for the workload. Here are my guidelines for the prediction model.
Experiment
The experiment predicts the number of incident creation tickets for each month in Salesforce, for the next five months. The Forecast Time Series experiment assistant workflow is used for this use case. The FTS Assistant predicts the next value in a sequence of time series data, and the result includes both the predicted value and a measure of the uncertainty of that prediction.
Follow these steps to create a Forecast Time Series Experiment:
Go to Apps -> Splunk_ML_Toolkit -> Experiments.
Click on Create New Experiment
Select Forecast Time Series from the dropdown
Complete the Experiment Title and Description and click Create. (Both the name and description can be edited later if needed)
Build The SPL
Creating the SPL is the 80% of the work. The SPL should filter the condition appropriately to a specific numeric field value. The below SPL is an example where the search scans thru the past four years of salesforce incident tickets count through the input lookup with a one month span. Develop similar SPL based on your data sources.
Select the Kalman Filter algorithm from the Algorithm dropdown. A good understanding of each algorithm is needed to use the algorithm that works best for our use case. The Kalman Algorithm considers subsets of features such as local level (an average of recent values), trend (a slope of line that fits through recent values) and seasonality (repeating patterns).
From the Field to Forecast list, select the Tickets Count field which we want to forecast for this use case.
Next, specify 5 in the Future Timespan field, which is 5 months of future data we want to forecast.
Then, specify 95 in the Confidence Interval field, which is the percentage of the future data you expect to fall inside of the confidence envelope.
All other fields are optional and can be used based on the use case.
Forecast
Click on Forecast. The math behind the algorithm gets applied on the search results and will produce the results of the next five-month prediction count.
Definition of The Variables
After you forecast a time series, review your results in the following tables and visualizations.
Run The Model
Click on the Show SPL to generate a new modal window/overlay showing the search query you used to forecast. Copy the SPL for future use in other aspects of your Splunk environment.
Once you are getting valuable results from your experiment, save it. Saving the experiment results in the following actions:
Assistant settings saved as an experiment knowledge object. The Draft version saves to the experiment Listings page. Any affiliated scheduled trainings and alerts update to synchronize with the search SPL and trigger conditions.
Load a saved experiment by clicking the experiment name.
Within the experiment click Open in Search to generate a new search tab for this same dataset. This new search will open in a new browser tab, away from the assistant. This search query uses all data, not just the training set. You can adjust the SPL directly and see results immediately. You can also save the query as a Report, Dashboard Panel or Alert.
Experiments are always stored under the user’s namespace, which means that changing sharing settings and permissions on experiments is not supported.
Now you know how to create and run a prediction model with Splunk MLTK. Let us know if your model works, and if you have any questions after running your next prediction. Happy Splunking!
Splunk timestamp extraction can be tricky until you work with it a couple times. Follow along with me through a couple different examples and you should be able to extract a timestamp out of any data.
So, what do we use to extract a time stamp? There are a few settings in Splunk’s “Magic 8” that go into props.conf of the data you are trying to ingest. There are three settings were going to work with today.
TIME_PREFIX
TIME_PREFIX is the regex to tell Splunk where to start looking for the timestamp. Splunk will then attempt to make a timestamp out of the characters that follow the prefix. If the prefix cannot be found then timestamp extraction will not occur.
MAX_TIMESTAMP_LOOKAHEAD
This is the count of characters you want to look at in the timestamp. This count begins right after the end of the found TIME_PREFIX characters and counts from there. This does not count from the start of the event.
TIME_FORMAT
Time variables used to parse out our timestamp and tell Splunk what each item is.
Variable
Description
%Ez
Splunk-specific, timezone in minutes.
%H
Hour (24-hour clock) as a decimal number. Hours are represented by the values 00 to 23. Leading zeros are accepted but not required.
%I
Uppercase “i”. Hour (12-hour clock) with the hours represented by the values 01 to 12. Leading zeros are accepted but not required. Use with %p to specify AM or PM for the 12-hour clock.
%M
Minute as a decimal number. Minutes are represented by the values 00 to 59. Leading zeros are accepted but not required.
%N
The number of subsecond digits. The default is %9N. You can specify %3N = milliseconds, %6N = microseconds, %9N = nanoseconds.
%p
AM or PM.
%T
The time in 24-hour notation (%H:%M:%S). For example 23:59:59.
%X
The time in the format for the current locale. For US English the format for 9:30 AM is 9:30:00.
%Z
The timezone abbreviation. For example EST for US Eastern Standard Time.
So, for testing we are going to use my local Splunk install and the add data wizard/upload data to test our configs and check the data.
My first example is the splunkd_ui_accesslogs in my internal index. This one is pretty simple as Splunk actually already picks up the timestamp for us! That’s it right? Well, we could stop there and let Splunk do the work or we could tell Splunk exactly where to look and what to look at so it doesn’t have to waste resources trying to do this itself.
As you can see the correct timestamp is highlighted and yet we don’t have any settings set in advanced. Let’s change that.
First were going to take this event into a regex tester (I use regex101) to create a regex for before the timestamp. Doing this I was able to use “s[“ as my TIME_PREFIX.
TIME_PREFIX = s[
Next, I counted the number of characters in the timestamp and came up with 30 characters including the space. Yes, the space does count.
Using this page, we want to find the correct variable for each element of the time and write it out in the same format with those variables. Here is what I came up with for this timestamp.
TIME_FORMAT = %d/%b/%Y:%H:%M:%S.%3N %z
The %z at the end represents time zone in the data.
Using these settings, we can see that our test worked and we are collecting the correct timestamp for Splunk so it can save on workload.
This event has the timestamp at the beginning of the event so we are going to use the TIME_PREFIX of “^”. This tells Splunk that the timestamp is at the very beginning of the event. The methods for creating the MAX_TIMESTAMP_LOOKAHEAD and TIME_FORMAT stay the same. Using this event, I came up with these settings.
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 29
TIME_PREFIX = %m-%d-%Y %H:%M:%S.%3N %z
Next, I did want to show some syslog data and working with its timestamps. Nothing different here but syslog is a very common type of data so I thought it would be good to include. Here I will be using a couple of F5 syslog events. My settings are:
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 15
TIME_FORMAT = %b %d %H:%M:%S
If you are looking to work well with timestamps it may take a couple tries and some practice but it will be easy to pick up and make things smoother for you when bringing in data. I am happy to answer any questions you have, just contact me using the form below. Happy Splunking!
No matter how much training you go through and how many certifications you get, you can truly never know everything about Splunk. Some of it isn’t even provided in training itself – to properly use Splunk, you’ll need experience around the command line, data sources, and syslog. Even beyond that, you’ll never truly memorize every possible setting in props.conf or how to form every possible regular expression.
Here is a list of resources that my fellow TekStream colleagues and I compiled that we use on a near daily basis to assist in our Splunk work.
You will never go a day using Splunk without referring to the official documentation, colloquially known as the “Docs”. It has pages on every product offered by Splunk, including premium apps and select supported apps in Splunkbase, and provides detailed installation steps, configuration steps, upgrade steps, and best practices. Nearly every .conf file and SPL command/function has its own page for reference, on top of formatting standards for time values and dashboards (both Classic and Studio). The added benefit is that Splunk keeps previous versions of the Docs available if you aren’t running on the latest version. While the Docs are an essential resource, be wary of vague wording on some pages.
If you didn’t find it in the Docs, somebody else didn’t either. The Splunk community has thousands of Q&A threads for tricky searches, error messages, unconventional log sources, and other specific use cases. Oftentimes community posts and the docs go hand in hand as several users link back to the docs for more information on an answer. It’s sites like here that show how limitless the sky can be with Splunk.
A repository for apps to install in Splunk – some supported, others not. Includes technical add-ons (TAs) for data sources, front-facing apps with useful dashboards, alerts, and searches, and even custom visualizations (like a calendar, for example). While you’ll always interact with Splunkbase in some way or another (as Splunk communicates with it directly to install apps), the site itself is useful for documentation and important updates provided by the developers. Don’t see an app for your purposes? Develop one and submit it for others to use!
This constantly updated list provided by Splunk has several threat detections to use in Enterprise Security. Each detection has steps for implementation, security context, and known false positives. Keep in mind that some are marked “experimental” and may not be confirmed as effective.
Risk Based Alerting is a powerful and unique feature in Enterprise Security for prioritizing threat sources, and this free PDF is a guide for how to use it and get the most value out of your security notables.
An open repository for SPL queries and dashboards, essential for anyone getting started with SPL and/or looking for inspiration for their own projects. They also have a blog with some helpful Splunk information, although they haven’t been updated in over 5 years.
Our esteemed Splunk Consultants from all over the country always post helpful information, tips, and resources to this very blog. Be sure to follow us on LinkedIn for updates and new blogs as they come in!
Once you’ve mastered RegexOne, Regex101 becomes an invaluable tool for figuring out regular expressions for field extractions and line breaking. Don’t be surprised if you use this website every week, if not every day.
Helpful for developing apps and deciphering complicated log files (although Splunk is generally quite good displaying these events via INDEXED_EXTRACTIONS or KV_MODE).
Some reports and alerts may need to be run on an unconventional interval for their own reasons or for spreading out search jobs. Splunk uses cron jobs to set up such alerting and this site makes formatting them easy. Just copy and paste directly into Splunk when finished.
MAX_TIMESTAMP_LOOKAHEAD and TRUNCATE are essential props.conf settings to help Splunk parse time and guide each sourcetype on event length. Instead of manually counting characters, paste an event or a timestamp here to get a value immediately.
I’ve developed use cases for my own customers to filter dashboard panels based on time intervals, which involve weaving around values set by the time picker with directly comparing epoch values. Other times, I may want to verify that the timestamps coming in are being read correctly by Splunk into the right time zone offset. This converter is perfect for translating dates to and from epoch time for these use cases and beyond.
This list is in no way comprehensive – there are infinite use cases for Splunk that may require other tools. These are just the ones that me and my fellow consultants at TekStream use regularly. Happy Splunking!
Every day, more and more Splunk customers are moving from on-prem to Splunk Cloud. While this move simplifies architecting and cuts down on server admin costs, it also makes it more difficult for Splunk admins to install new and existing custom apps (read non-Splunkbase). All apps in Splunk cloud must pass a vetting process called AppInspect. Without understanding the inner workings of the AppInspect process, the task of making an on-prem custom app Splunk Cloud compliant can be tedious and time consuming. This guide will give step-by-step instructions to get your custom app to pass the FIRST time. By the end, you’ll have a cloud app template you can use for other custom apps.
Download Splunk Add-on Builder
To get started, it is recommended to download the Splunk Add-On Builder and start by using the default add-on as a template. It contains the bare essential directories and files expected by the app vetting process (plus some extraneous files that can be removed).
After downloading the app, navigate to the home page under Apps>Splunk Add-on Builder and click New Add-on on the far right. Enter the name of your app, and optionally edit the directory name as needed.
The resulting custom app will be created under $SPLUNK_HOME/etc/apps.
Prep the App
Next the app will need to be prepped in order to pass AppInspect. These are the most common items that must be addressed for apps to pass (easiest to do these from the command line. Assume that the working directory for all steps is “$SPLUNK_HOME/etc/apps/”):
Remove addon_builder.conf in the app’s default directory
Move the auto-generated app.conf from local to default a. It’s recommended to use the auto-generated one, even if there is already an app.conf in the existing version of the custom app.
Modify the auto-generated app.conf to clear errors and warnings a. Check that the package attribute and stanza already exist. Create them if they do not: [package] id = <custom_app_directory_name> b. Add the following additional id stanza and attributes anywhere in app.conf: [id] id = <custom_app_directory_name> name = <custom_app_directory_name> version = x.x.x *Make sure the version numbers are the same if they are listed multiple times.
Ensure that app.manifest to matches what’s in app.conf a. Check the first block of json and ensure that “info.title”, “info.id.name”, and “info.id.version” have values that match what’s in app.conf.
Remove the local directory (double check that it’s empty first!)
Add binaries/conf files a. Be sure to place any executables in “bin/” and all Splunk configurations in “default/”
Edit default.meta with necessary permissions a. The “admin” role is not available in Splunk cloud, so every reference in must be changed to “sc_admin”, which is the Splunk cloud equivalent. b. If the original custom app has a local.meta, it must be merged into default.meta.
Change permissions on app directories/files and compress the app a. All files must be changed to allow others to read, while all directories must allow others to read/write. b. On Linux/macOS, this equates to 755 for directories and 644 for files. c. Once the permissions are correct, compress the custom app into a .tgz or tar.gz archive. i. Note: if this is done on a mac, be sure to exclude any “__MACOSX” files. The command line options for this can vary depending on the current macOS version.
Install in Splunk Cloud
The new custom app is ready to be installed. Navigate to Apps>Manage Apps>Uploaded Apps>Upload app on the desired search head in Splunk cloud and select the custom app archive. Splunk will automatically run the app through AppInspect and create a report of its findings before installation, which can be viewed by clicking the “View Report” link in the pop-up window. If there are no issues, Splunk Cloud will give the option to install the package.
Note: It is recommended to also clear all warnings, even though the app can still technically be installed with warnings present.
Here are some of the most common “gotchas” to look out for:
If the custom app contains scheduled reports within savedsearches.conf, make sure that they are disabled before vetting. To do this, ensure that every instance of “enableSched” is set to 0 or false.
Same with any data models in datamodels.conf – ensure that “acceleration = false” or “acceleration = 0”
If the app utilizes an SDK, ensure that it’s updated to the latest version.
And that’s it! By following this guide, you’ll be able to filter out the most common failures when building a custom app for Splunk Cloud. Depending on the complexity of the custom app, there may be additional failures to address in the custom config files.
Splunk’s Compliance Essentials provides several features that can help organizations meet the requirements of various compliance frameworks. This app comes pre-packaged with a library of compliance practices, dashboards that can be used to monitor compliance status & track progress, and reports that can be used to demonstrate compliance to auditors.
After a fresh installation, the app will direct you to the App Initial Setup Page to select a framework. You can also select multiple frameworks if more than one is applicable to your organization. Compliance Essentials addresses the requirements for the following five frameworks:
Cybersecurity Maturity Model Certification (CMMC)
Defense Federal Acquisition Regulation Supplement (DFARS)
Federal Information Security Modernization Act (FISMA)
Risk Management Framework (RMF)
Office of Management (OMB) M-21-31
This blog will provide a general overview of the features and benefits of the app, which is available for free on Splunkbase.
Overview Pages
The overview pages provide a high-level overview of your audit and continuous monitoring program. The Domain Overview page displays a selection of domains, each of which drills down into a Practice Overview page. The Practice Overview page, in turn, displays a selection of dashboards that provide more detailed information about the status of the program. For a single pane of glass view, the Executive Overview dashboard provides a top-down view of the status of the various audit review entries across the full scope of the solution.
Practice Dashboards
Compliance Essentials uses lookups and KV Store collections to map content to different controls. It also relies on data models to ensure that pre-built dashboards are populated correctly. The app comes with a robust library of more than 50 dashboards that align with OMB requirements, more than 100 dashboards that align with DFARS practices, more than 170 dashboards that align with CMMC practices, more 300 dashboards that align with FISMA practices and 2,900+ dashboards that align with RMF practices.
Custom Content
The Custom Content page in Compliance Essentials includes a list of custom dashboard panels which can be added to already existing dashboards. These panels are organized by practice and domain, making it easy to locate the panels you need. To add a panel to a dashboard, simply click on the “Add to dashboard” button. The panel will then be added to the corresponding dashboard. The solution includes over 300 custom panels that can be added to dashboards, in addition to the panels that ship out-of-the-box. This gives you a wide range of options to customize the dashboards to meet your specific needs and make them more informative and useful.
Adding Records
Users can also add records to each dashboard, making it easier to store relevant documentation and artifacts directly within Splunk. This is especially useful for practices that are documented or policy-driven, as it eliminates the need to search for artifacts in multiple locations.
Audit Entries
Each dashboard has an audit entry capability that allows you to view, manage, and create audit entries. This workflow can be used by your internal teams to track comments and feedback from reviews, verify compliance status, and set follow-up review dates.
Solution Activity
The Solution Activity page allows you to track the app’s activity and utilization, as well as audit the auditor’s work. It also provides monitoring capabilities for your audit and continuous monitoring program, both in terms of activities and overall trends.
Conclusion
Splunk’s Compliance Essentials is a one-stop shop that can help organizations improve their compliance posture by providing a centralized view of all their compliance data. This can help organizations to identify potential compliance gaps and track their progress towards compliance. If you are looking for a way to improve your organization’s compliance posture, contact us for more information on implementing Compliance Essentials into your environment.
Are you familiar with the HUD (Heads Up Display) within Splunk SOAR? It’s part of the out of the box capabilities Splunk provides which are great for highlighting information that the Security Analysts (SAs) feel is important. If not, this overview article is for you.
Build your Heads Up Display
You can find the HUD on any container view in the upper left-hand corner.
When expanded, it might look like this:
You can see above the default options for the HUD as either cards (the top three items) or data values (bottom three values). Cards can be a choice of three colours: grey, blue, or red.
To change the information being presented, click on the write icon on a card or the ellipse for the lines of data.
Pins can be added, or characteristics modified, by clicking on the gear in the upper right-hand corner. Clicking the gear will bring up a window like this:
This interface allows SAs to add cards, change colors, and even change the order in which they are displayed. You can toggle displaying the data table here as well.
To create a simple pin, click + Hud Card.
Message is the string that will be displayed above the value. Clicking save creates the card, but you will have to update the values as mentioned above.
The great thing about pinning things to the HUD is that you can do it programmatically as well from within a playbook. This way you can bring something to your SA’s attention immediately as needed during playbook execution. The ability to add a pin is is found under the utility option, and below is a simple playbook that was used to create the pins in Figure 2 above.
The underlying code for this call is the phantom.pin function. While not documented on the Container API page, here is some potential documentation as of SOAR 6.0.0:
The pin_id is then can be referenced for the update_pin or delete_pin function.
There are a couple of caveats to be aware when using the playbook utility function:
When selecting the data pin type, pin colour is ignored.
Card pins will be added at the end
Users will need the Edit Events permission to add/modify any pins on the container.
The phantom.pin function is obviously a wrapper for the container_pin REST call, but it doesn’t allow for access to all the different capabilities that a POST command can do. Look for XXX about how to create more complicated HUD pins to boost your SOAR’s capabilities.
We hope this has helped you create an awesome heads up display, and that it makes your Splunk SOAR capabilities shine. Contact us if you have any additional questions: