Category: Blog

  • Four Signs Your Splunk-Centric Managed Detection and Response (MDR) Solution is Falling Short

    Four Signs Your Splunk-Centric Managed Detection and Response (MDR) Solution is Falling Short

    by Bruce Johnson, Senior Director, Enterprise Security

    Gartner estimates that by 2025, the MDR market will reach $2.15 billion in revenue, up from $1.03 billion in 2021, for a compound annual growth rate (CAGR) of 20.2% (Source: Gartner Market Guide for Managed Detection and Response Services, Shoard, Lawson, et. al., Gartner Report ID G00734630, October 25, 2021). More companies are investing in a managed detection and response (MDR) solution to help improve their security posture. With this growth, we are seeing clients fall into a false sense of security because they don’t know what they aren’t seeing, and they don’t realize that it could be so much better.

    In this blog, we share learnings from the TekStream MSSP & MDR team, who give you four signs that your MDR solution may be lacking and outline ways you can solve this security problem. But first, how do you know what you’re missing?

    Is your MDR provider giving you full protection?

    As the leaders in implementing Splunk managed detection and response security solutions, the TekStream MDR team sees many customer environments not set up to get the leverage out of Splunk they were expecting. Often, they are relying on solutions that don’t ingest security data appropriately or lack the Splunk seniority to resolve onboarding issues. As a result, decisions made by the SOC (Security Operations Center) from partial views of the security threat surface are distorted, inaccurate, and lack fidelity. It’s what we know as “garbage in, garbage out.”

    Are you paying for your MDR Solution twice?

    We have helped other customers that were stuck with proprietary solutions using non-Splunk bolt-on applications owned by another implementation company. The old setup limited the rich features the Splunk platform offers, and they weren’t getting a return on their investment, not to mention their own data is owned by someone else. Many MDR solutions leveraging Splunk were conceived of several years ago and Splunk was relegated to a passive data store, never taking advantage of it as an enterprise security solution. The net result is that they end up paying for a SIEM solution twice, one Splunk based and the other proprietary.

    Do these questions haunt you?

    • Am I getting the Splunk capabilities I paid for?
    • Are there real threats to my system that I miss because of unclear or missing alerts?
    • Am I seeing everything I need to be seeing?
    • How do I find the expertise I need – when I need it?
    • Could I be paying for my SIEM solution twice?

    If you’ve invested in Splunk to power your MDR, but still worry whether you are getting the security and ROI you expect, here are the four (4) signs to identify potential shortcomings.

    Four Signs Your Splunk-Centric MDR Solution is Falling Short

    1. You’re Not Getting the Visibility You Need

    One of the most significant benefits of an MDR solution is the visibility it can provide into your organization’s security posture. This is all about how threats are surfaced, scored, and responded to.

    If your MDR solution doesn’t provide the level of visibility you need, you may have these issues:

    • You’re constantly chasing down alerts.
    • There is a lack of enrichment to the alerts from various tiers and security appliances (I.e., simple alert echoing).
    • Emerging threats don’t reveal themselves.
    • You’re not receiving the information you need to make decisions or respond to threats.

    To get the most out of your MDR solution, you must ensure you have visibility into all aspects of your environment, including your network, servers, applications, and data. Without this visibility, you won’t be able to detect and respond to threats effectively. You also need to ensure your solution protects all aspects of your environment, including your network, servers, applications, and data.

    We often see situations where an MDR solution fails to be truly embedded across an organization’s teams, business processes, response workflows and collaboration. Are there gaps in your coverage? Do modifications to correct ingestion or alerting functionality lag? Without the ability to see all corners of your system, faults can pop up without notice, and without clear definition. If you can’t tell what an alert means and your MDR solution doesn’t show you why, then you don’t have everything you need.

    2. Fidelity – data accuracy – is lacking

    While visibility is what you can see, fidelity is how accurately you see it. In other words, are the threats detected relevant? The last thing you want is a poorly implemented MDR that lets you know about minor threats as often, or more often than, more significant threats. We call this alert fatigue, and it occurs when a system lets you know about threats you don’t need to worry about. It can cause you to miss the important threats in the noise. It’s important to implement a system that reduces esoteric alerts and avoids false positives and false negatives to deliver full protection from online threats.

    3. You’re Not Able to Respond to Security Threats at The Speed You Need

    A successful MDR solution empowers your team with the data and insights they need to respond quickly and effectively to threats. The ideal MDR setup also helps you proactively identify and address potential threats before they become serious issues.

    Even better, a robust MDR solution will provide your team with automation tools that span everything from manual detection to fully automated prevention. To improve the return on your MDR investment, implement workflows and rules that prevent as many threats as possible from becoming an issue while still providing your team with the insights they need to respond manually to threats as they arrive.

    4. You’re Not Getting Expert Support

    One of the most significant issues our MDR team encounters is companies who do not have consistent access to experienced Splunk MDR talent and don’t have proper guidance for challenging technical issues. In fact, 68% of companies report that talent shortages directly led to the failure of one or more security projects/initiatives (Source: Splunk 2022 State of Security Report). Attracting expert talent is often difficult because skilled Splunk MDR experts can be expensive to hire and retain.  

    From the very outset, faulty onboarding and implementation results in a security system that isn’t incorporating the security data appropriately. When the wrong data goes into the system, then the reports and alerts you receive will be garbage. This results in decisions that are distorted, inaccurate, and lacking fidelity.

    Best Technology. Best Partner. Best Solution.

    If you’re not getting the visibility, coverage, accuracy or response you need from your MDR solution, then it may be falling short. But there’s no need to panic.

    Here at TekStream, we’re the leader in Splunk MDR implementations. We offer a full scale of services from implementation to fully managed SOC to outsourced MDR. We have a proven track record of getting companies the full power, security, and ROI out of Splunk as quickly as possible. We typically take companies like LendingPoint and FedEx from signing to kick off in two to four weeks.

    TekStream has a 100% onshore/domestic team available 24 hours a day, 7 days a week, 365 days a year. The MSSP & MDR team has the knowledge and expertise to help keep your organization safe, averaging 5+ years of experience from each developer.

    Learn more about TekStream’s MDR capabilities and schedule a free consultation today:

  • Splunk Walklex Command

    Splunk Walklex Command

    By Jay Young | Senior Splunk Consultant

    Walklex Command:

    You can use walklex to view the contents of the .tsidx files in the WebUI and the Command Line Interface. It is a generating command that shows the contents listed in warm and cold buckets. The walklex command only works on buckets that have merged a .tsidx file; this is why it is not supported for hot buckets.

    Uses: 

    The WalkLex command returns terms and location references in a tsidx file. Its uses include helping discover frequently used terms; this can be leveraged to speed up searching with the | tstats command.

    Example: Location References and Terms

    Roles:

    1. User role must have run_walklex or admin_all_objects capability.
    2. Can be executed from the command line interface on a single warm or cold bucket.
    3. Users with search filters applied to their roles cannot use walklex

    What is the .tsidx File:

    1. Time-series index file or referred to as an index file occasionally.
    2. It associates specific keywords in event data with location references (number).
    3. The .tsidx file links with a companion rawdata file.
    4. Every Splunk Search scans for search keywords in the tsidx file.
    5. The search then uses location references from the keywords to get events from the rawdata file.
    6. Creates individual .tsidx files for data models.

    WalkLex Command-line Interface (CLI) Example:

    How to utilize the WalkLex command in the CLI; this allows for a specific warm or cold bucket inspection.

    1. cd /opt/splunk/var/lib/splunk/_internaldb/db/
    2. /opt/splunk/bin/splunk cmd walklex “/opt/splunk/var/lib/splunk/_internaldb/db/bucket name/add_name_of.tsidx” “”

    Example of the WalkLex Command: /opt/splunk/bin/splunk cmd walklex “/opt/splunk/var/lib/splunk/_internaldb/db/DIR/FILESNAME.tsidx” “*”

    CLI Output Example:

    Screenshot of terminal output displaying indexed log file paths and sourcetypes from Splunk's file system, illustrating the type of data the walklex command interacts with.
    1. Add > filename.txt to the end of the command to create a text file to view a text editor.
    2. The quotes at the end of the CLI command are the pattern or term you want to search for:
      Example:
      Search everything: “*”
      Search for a specific term “scr_ip”

    Using the Walklex in the WEBUI:

    You can find more about using WalkLex in the SplunkWeb GUI from the Splunk documentation.
    Splunk Documentation Ref: https://docs.splunk.com/Documentation/Splunk/8.2.6/SearchReference/Walklex


    Example WebUI Command:
    | walklex prefix=foo type=fieldvalue index=foo | stats sum(count) by term


    The walklex command attributes:
    prefix/pattern=[term or pattern]
    type=[fieldvalue, field, term]
    index=[name]

    Example WebUI Command and Output:
    | walklex pattern=* type=fieldvalue index=_internal | stats sum(count) by term

    Splunk table listing indexed term values and their total event counts, demonstrating how walklex reveals indexed metadata patterns across fields.

    The above example uses the pattern=* attribute to show everything in the _internal index with a count of the number of occurrences in the buckets for a specific time range.

    For more information on Walklex, or to speak with Jay about any other Splunk questions, contact him here:

  • Splunk Views: How to Embed Hyperlinks in a Custom App 

    Splunk Views: How to Embed Hyperlinks in a Custom App 

    By Nate Hufnagel, Splunk Consultant

    Private apps, also known as custom apps, grant Splunk admins the ability to package custom configurations and specialized functions into a neatly organized bundle. Throughout the lifetime of a typical Splunk deployment, there may be a need to embed custom links to enrich the end user experience. This guide will walk you through how to build your own custom app and embed a hyperlink, all through the UI. Note: in practice, this will require working knowledge of XML. The code needed to get this example working has been provided.

    Directory Tree

    Before we dive into the code itself, let’s explore the bones of most apps within Splunk. Here is a diagram of the directories that Splunk expects within its applications:

    Diagram of a Splunk custom app directory structure showing folders like appserver, default, metadata, and static, with UI XML files under the default/data/ui directory.

    More in-depth info on what each directory contains can be found here: https://dev.splunk.com/enterprise/docs/developapps/createapps/appanatomy/

    These subdirectories are created automatically when a custom app is created through Splunk Web.  Select local configuration settings, navigation menus, views, and app permissions can be customized through the UI.  The navigation menu and the views are the primary attributes we’ll be modifying in this case.  The “default/data/ui” directory is where  navigation menus and views are defined in the UI, and where hyperlinks can be embedded in the XML of custom apps.  

    Screenshot of the Splunk user interface section listing configurable elements like Time ranges, Views, PDF scheduling, Navigation menus, Prebuilt panels and Bulletin messages.

    To find the code, navigate to Settings>User Interface.  From here the XML can be edited directly.  Views and Navigation menus can be filtered by app and owner. 

    CSS stylesheets and static images can be used to further customize a private app as it appears in Splunk.  Navigate to Manage App>Edit Properties>Upload Asset to upload these types of files to a particular app.

    Splunk interface showing navigation menu XML with multiple custom dashboard view entries under the chargeback app configuration.

    Splunk Default Stylesheets

    All necessary default stylesheets and files can be found using the barebones template. In this example, it’s easiest to take advantage of the default stylesheets built into Splunk.  While there are a few to choose from, this custom app references the default stylesheet “dashboard.css”. 

    Creating the App and Custom Views via Web UI

    Splunk interface showing the form for creating a new app, with fields for app name, folder name, version, author, description and asset upload options.

    To create a custom app, navigate to Apps>Manage apps>Create App.  Fill out the fields as shown in the image below (the app name can be different).  The barebones template will suffice for this example. The option to upload assets is also available upon app creation should you desire more customization.  Once finished, click “Save”

    Now that the app is created, let’s look at the default code.  Navigate to Settings>User Interface>Navigation menus.  The Navigation menus are the “tabs” that appear in the light gray bar near the top of the UI, just below the main navigation bar.  These menus can be customized in the UI to suite your apps’ particular needs.  The default navigation menus match the ones found in the Search and Reporting app:

    Splunk Enterprise interface with top navigation bar showing tabs for Search, Analytics, Datasets, Reports, Alerts and Dashboards.

    For this example, we’ll create our own custom navigation menus.  From Settings>User Interface>Navigation menus, filter the results on the custom app name and “Created in the App”

    In the Nav name column, clock into “default” and delete the default XML.  Add the block of code below to create the custom navigation menus:

    <nav search_view="search" color="#5CC05C">
      <view name="search" default="true" />
      <view name="hyperlink" default="false" />
    </nav>
    
    Splunk XML configuration screen showing basic navigation menu with two views defined — search as default and hyperlink as secondary.

    Once finished, click “Save”

    Next we’ll create a custom view in the new navigation menu we just created.  Navigate to Settings>User Interface>Views.  Select the custom app from the drop-down menu and specify “Created in the App”.  There should be no configurations present.  Click “New View”, enter a name, and copy the body of XML below into the “View” block:

    <dashboard version="1.1" stylesheet="dashboard.css">
      <label>Hyperlink</label>
      <row>
        <panel>
          <html>
            <section>
              <p>Click the hyperlink to have fun with regex: <a href="https://regex101.com/" target="_blank">More regex, please!</a></p>
            </section>
          </html>
        </panel>
      </row>
    </dashboard>
    
    
    Splunk dashboard XML editor displaying code for a panel labeled “Hyperlink” with embedded HTML containing a link to a regex resource.

    This is where we define the stylesheet for the webpage and embed the hyperlink.  You can embed any link you like using standard XML syntax within the <section> element.  Note: if your link directs users to external sites, be sure your firewall rules allow for this.  In this example, we include a short message and a link to regex101.com.

    That’s it! Navigate to the app from the App dropdown and observe the changes to the UI.

     Final Splunk dashboard page showing a message “Click the hyperlink to have fun with regex” and an active link labeled “More regex, please!”

    For more details on this Splunk change, or to speak with Nate about any other Splunk question, contact us:

  • The Nitty-Gritty of Sorting Lexicographically in Splunk

    The Nitty-Gritty of Sorting Lexicographically in Splunk

    By David Allen, Senior Splunk Consultant

    In Splunk, especially in relation to sorting, we often hear the word “lexicographical”. But what does lexicographical really mean and how does Splunk decide the lexicographical precedence that it uses? We will answer this question by taking a deep dive into the most basic building blocks of computer software – binary numbers and a decades old table used today to sort all our modern-day data analytics results. Let’s get started!

    Lexicographically is a sorting process based on UTF-8 and more specifically ASCII which is an abbreviation for American Standard Code for Information Interchange. ASCII is a character encoding method originally developed for electronic communications. ASCII codes represent text in computers, telecommunication equipment and other devices.

    The history of ASCII reaches back to the early 1960s and is based upon an 8-bit byte. Seven of the bits are used to define the symbol codes and 1 bit was used for the parity – a rather simple form of error detection not used any longer. Back in those days there was a lot of work being done to make a standard for communication from computers to other devices, namely printers, teletype machines and even punch card machines. In addition to the printable characters (upper case, lower-case, numbers and some white space characters), there are a lot of non-printable control characters designed to control certain features not used much today, i.e. the backspace and bell codes among others.

    There were a lot of revisions to the ASCII code table down through the years as the standard evolved into what we use today as the accepted ASCII standard below.

    Vintage-style USASCII code chart showing binary, decimal, and character representations for control characters, digits, punctuation and letters.
    ASCII chart from a pre-1972 printer manual

    Now, back to Splunk and the lexicographical sorting process… By sorting from the lowest bits (00000002 to the highest bits 011111112) top left to bottom right, we can now see why Splunk states the sorting precedence is as follows…

    Numbers are sorted before letters

    This is because the number 0 has an ASCII code of 001100002 and the last number 9, has a binary code of 001110012 and these codes are less than the lowest code for the letters which happens to be the capital letter A with a binary code of 010000012.

    Uppercase letters are sorted before lowercase letters

    This is because the uppercase letters all have binary codes (010000012 – letter A through 010110102 – letter Z) lower than the lowest lower-case letter (letter a) with a binary code of 011000012.

    Symbols are not standard. Some symbols are sorted before numeric values. Other symbols are sorted before or after letters

    This can be seen by noticing that there are some symbol codes which are lower than the number 0 code. Notice that 001000002 (which is the code for the space symbol) through 001011112 (which is the code for the / symbol are lower codes than the code for number 0. In the same way, there are symbol codes between the numbers and the upper-case letters as well as the upper- and lower-case letters. As a result, when you are sorting symbols along with numbers and letters there may appear to be an anomaly where the symbols are all mixed up among the letters and numbers but in fact it is all makes sense if you sort by the binary codes used in the ASCII table.

    Punctuation strings are sorted lexicographically

    You may think this does not make much sense. But by looking at the ASCII codes for the punctuation symbols it starts to become clear what is going on. Let’s look at some scrambled up symbols and characters then let’s sort them lexicographically according to the ASCII table and see what we get. Below is the SPL for this example:

    | makeresults
    | eval ASCII_Symbol=”{ O u ( 3 I A o < 1 E 5 [ I U ? a ! e . 7 }”
    | makemv delim=” “ ASCII_Symbol
    | mvexpand ASCII_Symbol
    | sort 0 ASCII_Symbol
    | stats list(ASCII_Symbol) AS ASCII_Symbol
    | nomv ASCII_Symbol

    Here is the output:

    Sample output of ASCII symbols sorted lexicographically, displaying a sequence of punctuation marks, numbers, and uppercase and lowercase vowels.

    Now by looking at these results and comparing with the ASCII table above you can see that the symbols “!”, “(“ and “.” have lower binary values than all the numbers and letters. Also, the symbols “<” and “?” have binary codes higher than the numbers but lower than the upper-case letters and so forth with the remaining symbols. Going from left to right you will see the lowest symbol code to the highest symbol code.

    Splunk pro tip advising users to use '0' for the count in sort commands to avoid truncation of large datasets, ensuring full result retrieval.

    There you have it. Splunk sorting explained at the binary level. So, the next time you hear lexicographical sorting, just think ASCII sorting! That is all it is, plain and simple.

    For more information on Splunk sorting, or to contact David or one of our other Splunk experts, contact us here:

  • Beginner’s Guide to Splunk Global Configuration Files

    Beginner’s Guide to Splunk Global Configuration Files

    By: Eric Levy | Splunk Consultant

    Splunk is an invaluable tool for data analysis and provides flexible options to configure an environment tailored to the business using it. But beyond text boxes, drop-down menus, and radio buttons in the Web environment, or executing commands on the command line – how does Splunk log and make changes? Enter configuration files.

    SPLUNK CONF FILE

    Splunk configuration files (or “conf files”) – using the .conf file extension – are a series of files that dictate almost all settings in a Splunk environment. This includes data inputs, outputs, data modification, indexes, clustering, performance tweaks, and much more. Splunk deployments can have several conf files of the same name in various directories, and “merge” via precedence rules.

    Different conf files exist in a global context and an app/user context, the latter of which typically are used for search related activities. Here we will talk about conf files used in the global context, although usage at search time will be touched upon where applicable.

    CONF FILE PRECEDENCE

    Conf files can exist in default or local directories within apps or the overall system. Generally, local settings take precedence over default settings, and it is recommended users make changes in local directories. Further ordering depends on global or app/user context. For the global context, the baseline precedence order is as follows:

    • System local directory
    • App local directory
    • App default directory
    • System default directory

    EDITING CONF FILES

    Settings within a conf file follow a header, attribute structure in separate stanzas. The header is indicated in [brackets], with attributes below them. Attributes are case sensitive, and settings may not apply if typed incorrectly. Values for attributes are not case sensitive.

    To edit them, one must have file system access. Using vi or nano via the command line or a text editor is most common. To apply new changes in Splunk after editing a conf file, save it and then restart Splunk.

    Here is some more information on some of the most common global conf files:

    INPUTS.CONF

    inputs.conf is used for specifying input data sources.

    On a forwarder or single server, inputs.conf specifies data sources used in the deployment. On an indexer, inputs.conf specifies the port that a forwarder sends data (set in outputs.conf on the forwarder). The port used to send data from one Splunk instance to the next is typically 9997. On a search head, inputs.conf ingests internal logs by default.

    The available settings in inputs.conf depend on the data source being imported. The header is always formatted as [data_type://<path>], where the data_type could be monitor input, tcp/udp (network input), scripted input, etc. The <path> is the file path, but this setting may also vary depending on the data_type.

    Attributes include setting the data source’s host, index, source, and sourcetype. Specifying the sourcetype is important for processing in props.conf. Additional settings for specifying the host are available as well. Whitelist and blacklist options allow you to filter files to import within a path. Beyond these, each data_type has its own unique settings.

    PROPS.CONF

    props.conf provides several processing settings to modify data coming into Splunk. This file can apply either at index time (global context) or at search time (app/user context).

    Sourcetypes are separated by stanza with their own list of attributes. On a forwarder, parsing is limited, but indexers and search heads can provide index-time and search-time parsing.

    The “Big 8” settings, as recommended by Splunk Education, are as follows:

    • LINE_BREAKER = (regex): Determines the start of a new line.
    • SHOULD_LINEMERGE = (TRUE/FALSE): Typically set to false when used with single lined events, and not very efficient, but tries to clean up event boundaries.
    • TRUNCATE = (integer): Specifies the maximum line length in bytes (set to 0, lines will not be truncated).
    • MAX_TIMESTAMP_LOOKAHEAD = (integer): The maximum number of characters for a timestamp within an event.
    • TIME_PREFIX = (regex): A prefix that Splunk looks for up until the timestamp begins.
    • TIME_FORMAT = (format): Tells Splunk the timestamp’s format.
    • EVENT_BREAKER_ENABLE = (TRUE/FALSE): Used in load balancing data to indexers on a universal forwarder.
    • EVENT_BREAKER = (regex capture group): Specifies the event boundaries for multi-line events on a Universal Forwarder, if EVENT_BREAKER_ENABLE = true.

    OUTPUTS.CONF

    outputs.conf tells the Splunk instance where to forward data.

    This file is required on a forwarder. Indexers don’t typically need one, but search heads can have it to forward logs back to the indexers. This is especially important in clustered environments.

    The stanza header lists the type of output (tcpout, syslog, etc.), and then the target instance, separated by a colon. For example, tcp output going to indexer 1 would follow the format [tcpout:indexer1]. Overall output settings don’t include the target (e.g., [tcpout]).

    Attributes for an overall tcpout stanza include:

    • defaultGroup = (comma separated list) – Lists target group names.
    • indexAndForward = (Boolean) – When set to true, automatically indexes data before forwarding it (only available on heavy forwarders).

    Attributes for a target group tcpout stanza include:

    • server = (comma separated list) – One or more IPs to send data over.
    • indexerDiscovery = (string) – Set it to the IP of the manager node to enable indexer discovery in a clustered environment.

    outputs.conf settings are not limited to tcpout – different types of outputs have their own unique sets of settings.

    SERVER.CONF

    server.conf configures a wide variety of server options in Splunk.

    It includes a [general] stanza where one can configure the serverName, hostName, sessionTimeout, site (in a multisite cluster), parallelIngestionPipelines (for increased processing), and more.

    Another important stanza in server.conf is [clustering], which determines an instance’s role in an indexer cluster. Settings include:

    • mode = (string) – Sets the mode for this instance (manager, peer, searchhead, disabled).
    • manager_uri = (uri) – The URI of the cluster manager.
    • pass4SymmKey = (string) – A password set between cluster instances to successfully send data.
    • rolling_restart = (string) – On the manager, determines how indexers restart during a rolling restart.
    • multisite = (Boolean) – On the manager, determines if the cluster is in multisite mode.
    • replication_factor = (integer) – On the manager, determines the number of copies of rawdata in a cluster.
    • search_factor = (integer) – On the manager, determines the number of copies of searchable data in a cluster.
    • available_sites = (list) – Lists the sites in a cluster (required for a multisite cluster).

    Also included are options to configure SSL, search head clustering, KV Store configuration, and much more.

    INDEXES.CONF

    indexes.conf sets properties for Splunk indexes.

    Each stanza represents a given index with attributes, but default settings can go in the [default] stanza.

    There are several general settings, but here are some attributes that can be set on a per-index basis:

    • disabled = (Boolean) – Turns an index on or off.
    • deleted = true – If present, the index is set for deletion.
    • homePath = (string) – Sets the path of the hot and warm buckets for this index.
    • coldPath = (string) – Sets the path of the cold bucket for this index.
    • thawedPath = (string) – If a frozen bucket is thawed, this specifies the path for that bucket.
    • maxGlobalDataSizeMB = (integer) – The maximum size of a warm bucket, in MB.
    • maxDataSize = (integer) – The maximum size of a hot bucket, in MB, before it rolls over to a warm bucket.

    OTHER USEFUL GLOBAL CONF FILES

    There are 56 unique configuration files in Splunk and nearly 30 of them are global – too many to discuss here! They are all important in their own ways, but here are a few others to take note of:

    • authorize.conf.- Handles user roles and their permissions.
    • collections.conf – Handles KV Store settings for apps.
    • deploymentclient.conf – Handles settings for clients of a deployment server.
    • limits.conf – Handles limits for search commands.
    • serverclass.conf – Handles creating different groups of deployment clients on a deployment server.
    • transforms.conf – Handles data transformations (typically with regex), in tandem with props.conf. Can exist in both the global and app/user contexts.

    For further reading, this is a full list of Splunk conf files, and here is more on how to edit a conf file.

    Happy Splunking!

    Contact us here for more Splunk advice:

  • TekStream Solutions SOC 2 Audit Reports

    TekStream Solutions SOC 2 Audit Reports

    System and Organization Controls (SOC) 2 reports are independent third-party examination reports that demonstrate how an organization achieves key compliance controls and objectives.

    SOC 2 reports are based on the Auditing Standards Board of the American Institute of Certified Public Accountants (AICPA) existing Trust Services Criteria (TSC). The purpose of the report is to evaluate an organization’s information systems relevant to security, availability, processing integrity, confidentiality, and privacy.

    TekStream undergoes rigorous independent third-party SOC 2 audits conducted by a reputable certified public accountant (CPA) firm to certify individual products on a regular basis. The audit firm evaluates whether TekStream’s compliance controls are designed appropriately, were in operation on a specified date, and were operating effectively over a specified time period.

    SOC 2 reports are attestation examinations that are conducted in accordance with the SSAE 18 standard, specifically section AT-C 105 and 205, governed by the AICPA.

  • pass4SymmKey does not hash when pushed from Cluster Master

    pass4SymmKey does not hash when pushed from Cluster Master

    by Aaron Dobrzeniecki | Senior Splunk Consultant

    When working with a pass4SymmKey, the goal is to get the password to hash when Splunk restarts on the servers you have placed them on. I have noticed while working with many customers that pushing a pass4SymmKey from the Cluster Manager WILL NOT hash the password on the indexers. The screenshots below are using Splunk 8.2.5 and I am pushing a pass4SymKey to the indexers.

    NOTE, pushing passwords from a CM in Splunk version 9.0+ will hash the pass4SymmKey on the indexer AND cluster manager side.

    On the Cluster Manager:

    Terminal window showing the contents of the server.conf file on a Splunk Cluster Master, including a plain-text pass4SymmKey used for cascading replication

    In newer versions of Splunk they have included a directory called manager-apps. As you can see above, I am using master-apps which you can still use in 8.2.5. In order to migrate over from using master-apps vs manager-apps, you need to move ALL of the apps in master-apps to manager-apps and apply the cluster bundle. NOTE! You cannot use master-apps and manager-apps at the same time.

    I have applied the bundle to the indexers and this image shows the checksums matching!

    Splunk terminal output showing cluster-bundle-status across multiple indexers, indicating active and validated bundles with replication status marked as "success".

    Splunk Indexer 1:

    Splunk configuration file on indexer 1 showing an unencrypted pass4SymmKey in the cascading_replication stanza.

    Splunk Indexer 2:

    Terminal output from indexer 2 displaying the same plaintext pass4SymmKey as indexer 1 in the server.conf file.

    Splunk Indexer 3:

    Splunk configuration file from indexer 3 showing an unencrypted cascading_replication pass4SymmKey similar to other indexers.

    As you can see from the multiple screenshots above, the pass4SymmKey did not hash on the indexers when pushed from the Cluster Manager. Also, in the first screenshot you can see that the password is also in plain text on the Cluster Manager. This imposes a security risk as well on the Cluster Manager. If an unauthorized user was able to gain access to the Cluster Manager, they could easily find this pass4SymmKey.

    Now, the stanza I have used in my example is for cascading bundle replication from the Search Heads. Having a similar pass4SymmKey under that stanza on all indexers, allows the indexers to send each other knowledge object bundles originating from the Search Head. Pushing ANY pass4SymmKey in ANY stanza from the Cluster Manager will not hash the value. Click here for more information on cascading bundles on Splunk.

    Solution/Resolution
    An absolute way I have found to make sure the pass4SymmKey hashes is to place the stanza and pass4SymmKey in $SPLUNK_HOME/etc/system/local/server.conf and restart Splunk. I know what you must be thinking, “We have a large number of indexers that we would need to manually touch in order to place the pass4SymmKey in $SPLUNK_HOME/etc/system/local/server.conf”. IF YOU DO NOT have any sort of automation tool (puppet, ansible, bitbucket CICD, or even just a script that will reach out and touch every indexer), you will have to manually touch each box. If you do not have any automation tools but you have a person who can write a script to touch each box, try that before the manual process.

    Manually Setting pass4SymmKey in Splunk

    -Navigate to the CLI or backend of the indexers
    -cd $SPLUNK_HOME/etc/system/local (Make sure you are the user that is running Splunk)
    -If there is no current server.conf, you can create one
    -vi server.conf
    -Place the specific stanza and pass4SymmKey setting you will be using as below:

    Magnified section of a configuration file showing the same plaintext pass4SymmKey used in multiple nodes.

    Note: **You will need to restart the indexers for the hashing to occur. In an indexer cluster you will want to perform a rolling restart instead of restarting each indexer manually. **

    -Navigate to the GUI or the backend of the Cluster Manager

    –GUI: Settings -> Indexer Clustering -> Edit (Top Right) -> Rolling Restart -> Begin Rolling Restart (check the widgets as necessary)

    –Back End/CLI: Navigate to $SPLUNK_HOME/bin and run the following command
    ./splunk rolling-restart cluster-peers

    The screenshots below will show you, that after manually placing my pass4SymmKey in $SPLUNK_HOME/etc/system/local/server.conf and performing a rolling restart on the cluster; the pass4SymmKey hashes!

    Encrypted pass4SymmKey displayed in server.conf from indexer 1’s system local directory, differing from the plaintext versions.
    Encrypted pass4SymmKey shown in the system local directory of indexer 2, indicating local hashing applied.
    System local configuration on indexer 3 showing a hashed version of the pass4SymmKey used for cascading replication.

    In Conclusion

    Splunk versions pre 9.0 WILL NOT hash the pass4SymmKey when pushed from the Cluster Manager. If you would like to apply a pass4SymmKey on versions before 9.0, you will either need to use an automation tool to reach every indexer, or touch each server manually as explained above. Please see all server.conf files from each version of Splunk after the push from the Cluster Master/Manager.

    Splunk 8.2.5 Indexer
    Terminal output showing a plain text pass4SymmKey value set to aarontest123 within the server.conf file on Splunk instance idx1, located in /opt/splunk/etc/slave-apps/_cluster/local/.
    Splunk 8.2.5 Cluster Master
    Terminal output showing a plain text pass4SymmKey value aarontest123 within the server.conf file on the Splunk Cluster Master (master1) in the /opt/splunk/etc/master-apps/_cluster/local/ directory.
    Splunk 9.0 Indexer
    Terminal output from idx1 showing a hashed pass4SymmKey stored in server.conf under /opt/splunk/etc/peer-apps/_cluster/local/, indicating hashing occurs when key is set locally rather than pushed from Cluster Master.
    Splunk 9.0 Cluster “Manager”
    Terminal output on master1 showing a hashed pass4SymmKey value in the server.conf file located in /opt/splunk/etc/manager-apps/_cluster/local/, suggesting a manual edit on the Cluster Manager with proper hashing behavior.
    Splunk 9.0.1 Indexer
    Terminal output from idx1 again displaying a hashed pass4SymmKey in the server.conf file located in /opt/splunk/etc/peer-apps/_cluster/local/, reinforcing that peer-nodes apply hashing correctly when configured independently.
    Splunk 9.0.1 Cluster “Manager”
    Terminal view of another hashed pass4SymmKey entry in server.conf under /opt/splunk/etc/manager-apps/_cluster/local/ on the master node, used to demonstrate inconsistent behavior when keys are pushed versus manually configured.

    There you have it! If you still have questions about this, or any other Splunk item that you’d like help with, contact us! Submit your comments below and we will be in touch right away.

  • Don’t “Fall” for Common Splunk Mistakes

    Don’t “Fall” for Common Splunk Mistakes

    The leaves are turning, the air is crisp, and something pumpkin-spiced is calling your name. But you can’t think about all that fall fun right now because you’re too busy troubleshooting your Splunk instance. We know that feeling, and that’s one of the reasons we frequently post hints and tips in this blog.

    With that in mind, we thought it would be helpful to reveal our most popular and common tactics for Splunk troubleshooting and finding solutions to give you that little nudge you need to get back on track.

    1. Troubleshooting in Splunk

    David Allen, a Senior Certified Splunk Consultant here at TekStream, starts us off with tips you can use to go from a novice to an expert. Read how the Search Job Inspector tool shows you where your Splunk system has been searching for issues, and how much time it’s been looking there. Dig into Execution Costs, Search Job Properties, and the BTOOL CLI command that reveals the actual settings on your SSD. These are standard functions that come with Splunk Enterprise software. You can rely on David’s problem-solving expertise as you dig into these issues and are invited to reach out if you have other questions.

    2. Troubleshooting Your Splunk Environment Utilizing BTOOL

    Going next level on the BTOOL utility, this popular post stresses that BTOOL is not a reflection of memory, but of what is written on your disk or your SSD. This tutorial walks you through the recommended steps for a Linux environment. Windows tutorials are available – just ask!

    3. The 3 Most Common Splunk Issues and How to Solve Them

    We end our roundup with a tidy list of three issues from Senior Splunk Consultant Aaron Dobrzeniecki. Data Quality, Search Performance, and High Resource Usage should be the first line of defense in your Splunk installation. You’ll see strategy and implementation advice with an eye to inspection. If you want more details, Aaron can be reached using the request at the end of the page.

    That should fix those issues – now you’re ready to go out there and “pumpkin-spice up” your fall!

    What other issues have you encountered in your Splunk environment? Check out other Splunk info and contact us for additional support.

  • Populating User Data for the Chargeback App

    Populating User Data for the Chargeback App

    By: Jeff Rabine | Splunk Consultant

    The Chargeback App is designed to help you identify how many SVCs your organization is using by Business Units and Departments. Recently I had a customer that wanted to define a Business Unit as a Vice President and a Department as a Director who reports to the VP. This is completely doable if you are ok with using the original field names that the chargeback app uses. The hardest part about configuring the Chargeback app is getting the data collected and formatted for the chargeback app to use. This blog post is not specifically about the Chargeback App. This blog is about collecting, formatting and populating the user data needed for the chargeback_user_2_bunit_csv_lookup.

    The challenge I had with collecting the user data is the data was not all in one place. I had an index that contained user data, and I had a CSV that identified Directors and VPs. What I needed though was a list of users and their associated Director and VP.

    I have formulated an example that contains less than 20 users, but this example is working in a production environment that contains over 50,000 users.

    In my example I use these two CSVs:

    Employee_List.csv

    Populating user data employee list csv

    management.csv

    A small table mapping VP IDs to Director IDs, used to enrich employee data for business unit association in chargeback workflows.

    The first step is to combine the two data sources and export them as a new CSV. We do this by using the lookup command.

    Screenshot of a Splunk search using lookup commands to merge employee data with management.csv for VP and Director mapping, displaying a preview of the enhanced employee list.

    Now that we have the data in a single CSV we can iterate through it to figure out who everyone’s VP and Director is. We do this by using the same lookup over and over as shown below. In this example, we only have to do it three times. In this real-world example, I did this eight times to fully populate the data.

    Splunk screenshot showing the use of nested lookup logic to retrieve manager hierarchy layers (Manager1 and Manager2) and align them with VP and Director values across employee records.

    As you can see, we now have much more data, but it is a mess. So lastly, we will coalesce the Director and VP data and we will rename the fields to match the Chargeback App requirements.

    Splunk interface showing a fully enriched user dataset with business unit and department IDs resolved via VP and Director coalescing logic, ready for use in the Chargeback App.

    As you can see, we now can identify the biz_unit or (VP) and biz_dep or (Director) for all our users.

    I hope this article will give you some ideas to when populating user data for the Chargeback app or help you iterate through a lookup multiple times to perhaps create an organizational chart. Happy Splunking!

    Want to learn more about lookups or the Chargeback App? Contact us today!

  • Tuning Your AWS WAF Configuration in Terraform

    Tuning Your AWS WAF Configuration in Terraform

    How to Implement Bot Control, Scope-down Statements, Allow US-only traffic, and/or Whitelist Exceptions to Rules Based on Whitelisted IPs or Header Information

    By: Brandon Prasnicki | Senior Cloud Architect

    AWS WAF is a Web Application Firewall that helps protect your web applications or APIs against common web exploits and bots that may affect availability, compromise security, or consume excessive resources. In this article, I describe and show the AWS WAF configuration in Terraform for a few use cases that may come in handy for your implementation.

    The first is bot control. Reducing bot traffic is rather simple when using WAF in AWS.  There is a managed rule you can use and documentation on how to create exceptions to allow certain traffic. Sometimes implementing the rules with Terraform can be a little tricky; this article contains an example use case you can use to help with your implementation.

    Amazon AWS describes this feature here and has documentation about the AWSManagedRulesBotControlRuleSet WAF rule here.

    Here are the steps on how the solutions were implemented.

    First, adding the rule was as straightforward as any other managed rule addition following the link below (The terraform is also included at the bottom of this article)

    With this enabled, we can quickly see bot traffic being rejected by navigating to:

    AWS WAF Bot Control diagram.

    And also:

    AWS WAF overview.

    And scrolling to the bottom of sampled requests and selecting the ManagedRulesBotControl block metric:

    AWS WAF ManagedRulesBotControl screenshot.

    Some of these blocks are false positives and may require whitelisting. For this, I have an IP set that I am using for known hosts and clients.

    Known hosts and clients IP screenshot.
    AWS WAF IP sets.

    I added the IPs to the IP set and used this IP set to whitelist rule for known hosts:

    IPs added to the IP set and used this IP set to whitelist rule.

    This whitelist IP set list was also used to whitelist IPs of non-US users to bypass the ‘Non US’ Geo Code Match Statement (DisallowNonUSTraffic seen in the Terraform below).

    However, not all requests were coming from known server hosts. Some requests were coming from client machines’ Tableau Desktop applications where the IPs were not static or always known. For this, I created a scope-down statement to grab the header information and allow anything that starts with ‘Tableau Desktop’ for the user-agent.

    Here is a screenshot of what this looks like in the console following this breadcrumb:

    AWS WAF - Web ACLs - ManagedWAFv2 - AWSManagedRulesBotControlRuleSet.

    Then you can click edit in this rule set to add a ‘Not Scope-down statement’ that will appear like this:

    NOT Scope-down statement.

    On the left you can see the blocked request with header information alongside the rule:

    Blocked request with Header info.

    Here is the Terraform for the IP set for whitelisting:

    Terraform for the IP set for whitelisting.

    Below is the entire Terraform for the web ACL.

    Here you will see:

    1. The implementation of the out-of-the-box AWSManagedRulesKnownBadInputsRuleSet_rule, AWSManagedRulesAmazonIpReputationList and AWSManagedRulesWindowsRuleSet.
    2. The exception rule to allow any whitelisted IPs.
    3. Disallowing any non-US traffic (not already included in whitelisted IPs).
    4. The web ACL with the whitelisted IP set referenced along with the scope-down statement in the AWSManagedRulesBotControlRuleSet.
    5. The scope-down statement to allow the Tableau Desktop communication.
    Terraform code defining an AWS WAFv2 Web ACL with two managed rule groups: KnownBadInputsRuleSet and AmazonIpReputationList, including CloudWatch metric configuration and override actions.
    Continuation of Terraform WAF rules including WindowsRuleSet, a whitelist IP set rule, and a geo-blocking rule for non-US traffic, each with visibility configuration and action settings.
    Terraform code configuring a bot control rule using AWSManagedRulesBotControlRuleSet with an exception for requests from Tableau Desktop identified by user-agent, including nested scope-down statements and visibility configuration.

    (Click here to download PDF of the code)

    These are just a few examples that can help manage your AWS WAF configuration in Terraform. The analysis of what rules to use and how to use match statements and scope-down statements might be the hardest part.

    TekStream can advise and help you implement these features and of course, assist with your implementation project or even support you in a ‘Consulting as a Service’ manner. Reach out today to see how we can help!