Category: Blog

  • Using Child Playbooks in Splunk Phantom

    Using Child Playbooks in Splunk Phantom

          By: Joe Wohar  |  Senior Splunk Consultant

    Splunk Phantom is an amazing SOAR platform that can really help your SOC automate your incident response processes. It allows you to build playbooks, which are Python scripts under the covers, that will act on security events that have been ingested into the platform. If you have a well-defined process for handling your security events/incidents, you can build a Splunk Phantom playbook to run through that entire process, therefore saving your security analysts time and allow them to work on more serious incidents.

    A common occurrence with Splunk Phantom users is that they create a playbook that they want to use in conjunction with other playbooks. For example, a security analyst created three playbooks: a phishing playbook, an unauthorized admin access playbook, and a retrieve user information playbook. In both a phishing event and an unauthorized admin access event, they’d like to retrieve user information. Therefore, the analyst decides to have each of those playbooks call the “retrieve user information playbook” as a child playbook. However, when calling another playbook as a child playbook, there a few gotchas that you need to consider.

    Calling Playbooks Synchronously vs. Asynchronously

    When adding a playbook block to a playbook, there are only two parameters: Playbook and Synchronous. The Playbook parameter is simple: choose the playbook you’d like to run as a child playbook. The Synchronous option allows you to choose whether or not you’d like to run the child playbook synchronously.

    A screenshot from Splunk Phantom showing options for retrieving user information from a playbook.

    Choosing “OFF” will cause the child playbook to run asynchronously. This means that the child playbook is called to run on the event the parent playbook is running against, and then the parent playbook continues down the path. If you’ve called the child playbook at the end of the parent playbook, then the parent playbook will finish running and the child playbook will continue running separately.

    Choosing “ON” means that the parent playbook will call the child playbook and wait for it to finish running before moving on to the next block. So when a child playbook is called, you have two playbooks running at the same time on the event. This means that every synchronous child playbook is a performance hit to your Splunk Phantom instance. It is best to avoid running child playbooks synchronously unless absolutely necessary due to the performance impact.

    Since there are cases where you might need the child playbook to be synchronous, there are a few tips to avoid causing too much of a performance impact.

    1. Keep your child playbooks short and simple. You want your child playbook to finish running quickly so that the parent playbook can resume.
    2. Avoid adding prompts into child playbooks. Prompts wait for a user to take an action. If you put a prompt into a child playbook, the parent playbook has to wait for the child playbook to finish running and the child playbook has to wait for user input.
    3. Avoid using “no op” action blocks from the Phantom app. The “no op” action causes the playbook to wait for a specified number of seconds before moving on to the next block in the path. The “no op” block causes the child playbook to take longer to run, which you usually want to avoid, but there are instances where you may need to run a “no op” action in a child playbook (covered later).
    4. When using multiple synchronous child playbooks, run them in series, not parallel. Running synchronous child playbooks in series ensures that at any given time during the parent playbook’s run, only two playbooks are running at the same time: the parent playbook and one child playbook.

    Sending Data Between Parent and Child Playbooks in Splunk Phantom

    When calling a child playbook, the only thing that is carried over to the child playbook is the event id number. None of the block outputs from the parent playbook are carried into the child playbook. This creates the problem of how to get data from a parent playbook into a child playbook. There are two main ways of doing this: add the data to a custom list or add data to an artifact in the container. The first option, adding data to a custom list, is a very inconvenient option due to how difficult it is to get data out of a custom list. Also, custom lists are really designed to be a list for checking values against, not storing data to be pulled later.

    Adding data to an artifact in the container can be done in two different ways: update an artifact or create a new artifact. Adding data to an artifact is also much easier than adding and updating data in a custom list because there are already actions created to do both tasks in the Phantom app for Phantom: update artifact and add artifact. “Update artifact” will require you to have an artifact id as a reference so it knows which artifact in the container to update. Adding an artifact is simpler because you can always add an artifact, but you can only update an artifact if one exists.

    When adding an artifact, there can be a slight delay between the time the action runs and when the artifact is actually added to the container. My advice here is when you add an artifact to a container that you want to pull data from in the child or parent playbook, add a short wait action (you only need it to wait 2 seconds) immediately after the “add artifact” action. You can have the playbook wait by adding a “no op” action block from the Phantom app for Phantom (which you should already have installed if you’re using the add artifact and update artifact actions).

    Documentation Tips for Parent and Child Playbooks in Splunk Phantom

    When creating a child playbook that you plan to use in multiple parent playbooks, documentation will really help you manage your playbooks in the long run. Here are a couple of quick tips for making your life easier.

    1. Use a naming convention for the child playbooks at least. I’d definitely recommend using a naming convention for all of your playbooks, but if you don’t want to use a naming convention for parent playbooks, at the very least use one for the child playbooks. Adding something like “ – [Child]” will really make it easier to find child playbooks and manage them.
    2. Put the required fields for the child playbook into the playbook’s description. Calling a child playbook is very easy, but if your parent playbook isn’t using the same CEF fields as the child playbook, you’re going to have a problem. Adding this list to the description will help let you know if you need to update your container artifact to add those needed fields or not.

    Follow these tips and tricks and you’ll be setting yourself up for a performant and easy-to-manage Splunk Phantom instance for the long term.

    Want to learn more about using playbooks in Splunk Phantom? Contact us today!

  • Deep Freeze Your Splunk Data in AWS, Part 2

    Deep Freeze Your Splunk Data in AWS, Part 2

          By: Zubair Rauf  |  Senior Splunk Consultant, Team Lead

    In Part 1 of this blog post, we touched on the need to freeze Splunk data in AWS S3. In that post, we described how to do this using a script to move the Splunk bucket into S3. In this post, we will describe how to accomplish the same result by mounting the S3 bucket on every indexer using S3FS-Fuse, then telling Splunk to just move the bucket to that mountpoint directly. S3FS is a package available in the EPEL Repository. EPEL (Extra Packages for Enterprise Linux) is a repository that provides additional packages for Linux from the Fedora sources.

    High Level Process

    1. Install S3FS-Fuse
    2. Mount S3 Bucket using S3FS to a chosen mountpoint
    3. Make the mountpoint persistent by updating the rc.local script
    4. Update the index to use ColdToFrozenDir when freezing data
    5. Verify frozen data exists in S3 bucket

    Dependencies and Installation

    The following packages are required to make this work:
    Package Repository
    S3FS-Fuse epel
    dependency: fuse amzn2-core
    dependency: fuse-lib amzn2-core
    Note: This test was done on instances running Centos-7 and did not have the EPEL repo added for yum. Therefore, we had to install that as well before proceeding with the S3FS-Fuse installation.

    Install S3FS-Fuse

    The following commands (can also be scripted once they are tested to work in your environment) were used to install EPEL and S3FS-fuse on test indexers. You have to run these as root on the indexer hosts.

    cd /tmp wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum -y install ./epel-release-latest-7.noarch.rpm rpm --import https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 yum -y install s3fs-fuse

    Mounting the S3 Bucket

    Use the following commands to mount the S3 Bucket to a new folder called frozen-s3 in /opt/splunk/data. Note: This method uses the passwd-s3fs file to access the S3 bucket. Please ensure that the AWS credentials you use have access to the S3 bucket. The AWS credentials need to be a user role with an Access Key and Secret Key generated. I created a user, ‘splunk_access,’ which has a role, ‘splunk-s3-archival,’ attached with it. This role has explicit permissions to access my test S3 bucket. The S3 bucket has the following JSON policy attached with it which gives the ‘splunk-s3-archival’ role full access to the bucket. The account_id in the policy is your 12-digit account number.

    {

    "Version": "2012-10-17",

    "Id": "Policy1607555060391",

    "Statement": [

    {

    "Sid": "Stmt1607555054806",

    "Effect": "Allow",

    "Principal": {

    "AWS": "arn:aws:iam:::role/splunk-s3-archival" },

    "Action": "s3:*",

    "Resource": "arn:aws:s3:::splunk-to-s3-frozen-demo"

    }

    ] }

    The following commands should be run as root on the server. Please make sure to update the following variables listed inside < > in the commands with your respective values:
    • splunk_user → The user that Splunk will run as
    • aws_region → The AWS region your S3 bucket was created in
    • bucket_name → S3 bucket name
    • mount_point → Path to the directory where the S3 bucket will be mounted
    These commands can be run on one indexer manually to test in your environment and scripted for the remaining indexers.

    cd /opt/splunk/data mkdir frozen-s3 cd /opt/splunk/data/frozen-s3 sudo vi /home//.s3fs/passwd-s3fs ## Add AWS Access_key:Secret_key in this file sudo chmod 600 /home//.s3fs/passwd-s3fs su -c 's3fs -d -o passwd_file=/home//.s3fs/passwd-s3fs,allow_other,endpoint= ' echo su -c 's3fs -d -o passwd_file=/home//.s3fs/passwd-s3fs,allow_other,endpoint=us-east-2 ' >> /etc/rc.d/rc.local chmod +x /etc/rc.d/rc.local

    Adding the mount command to the rc.local script ensures that the rc.local script mounts the S3 bucket on boot. Once you have manually mounted the S3 bucket, you can use the following command to verify the bucket has mounted successfully.

    df -h ## I get the following output from df -h

    [centos@s3test ~]$ df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 485M 0 485M 0% /dev tmpfs 495M 0 495M 0% /dev/shm tmpfs 495M 6.8M 488M 2% /run tmpfs 495M 0 495M 0% /sys/fs/cgroup /dev/xvda2 10G 3.3G 6.8G 33% / tmpfs 99M 0 99M 0% /run/user/1001 s3fs 256T 0 256T 0% /opt/splunk/data/frozen-s3 tmpfs 99M 0 99M 0% /run/user/1000 tmpfs 99M 0 99M 0% /run/user/0

    The bolded mount is the s3 bucket mounted using S3FS.

    Setting Up Test Index

    Create a test index with the following settings and push it out to all indexers through the Cluster Master:

    [s3-test] homePath = $SPLUNK_DB/s3-test/db coldPath = $SPLUNK_DB/s3-test/colddb thawedPath = $SPLUNK_DB/s3-test/thaweddb frozenTimePeriodInSecs = 600 maxDataSize = 10 maxHotBuckets = 1 maxWarmDBCount = 1 coldToFrozenDir = $SPLUNK_HOME/data/frozen-s3/_index_name

    The coldToFrozenDir parameter in the above stanza defined where Splunk should freeze the data for this index. This needs to be set for every index you wish to freeze. Splunk will automatically replace the _index_name variable from the coldToFrozenDir parameter to the index name (S3-test) in this case. This makes it easier to copy the parameter to multiple individual index stanzas. For testing purposes, the frozenTimePeriodInSecs, maxDataSize, maxHotBuckets, and maxWarmDBCount have been set very low. This is to ensure that the test index rolls data fast. In production, these values should either be left as the default or changed in consultation with a Splunk Architect. The index needs to be setup/updated on the Cluster Master and configurations pushed out to all indexers.

    Adding and Freezing Data

    Once the indexers are restarted with the correct settings for index, upload sample data from the UI. Keep adding sample data files to the index till the index starts to roll over hot and warm buckets to cold and eventually frozen. Eventually, you will start to see your frozen data present in your S3 bucket.

    Want to learn more about Freezing Data to S3 with Splunk? Contact us today!

  • How to Configure Splunk DB Connect & Export Splunk Data to an External Database

    How to Configure Splunk DB Connect & Export Splunk Data to an External Database

          By: Quinlan Ferris  | Splunk Consultant

    At some point you may find the need to export data from Splunk to an external database for data collection or to keep important information pulled from searches in a safe and secure place along with other assets. You do have a few options to achieve this; for example, downloading a .csv file from a search and manually copying it over or using a script to append to the existing database. However, the most streamlined and efficient way is to use a Splunk-supported app, Splunk DB Connect. Not only does this app allow you to write to an existing or newly created database and run on a cron schedule, but you can also run searches against your data in an existing database. For now, we will cover exporting Splunk data to an external database. Splunk supports a wide variety of databases ranging from MySQL to MongoDB; while some are not directly supported, there are ways to configure SQLite and more if needed. Prerequisite: Installation of Splunk DB Connect, install DB drivers, secure DB connection. First, we will want to download Splunk DB Connect. There are a few different ways to install depending on your environment and how it is configured. If running a single instance, install on the search head. On a distributed environment with search head clustering, you will need to install on deployer and heavy forwarders. Next, make sure you install a Java Database Connectivity (JDBC) database driver. Optionally you can download more drivers based on your database in use. Database drivers should be extracted into the folder $SPLUNK_HOMEetcappssplunk_app_db_connectdrivers. Finally, once the app is installed, click “new connection” and simply configure desired connection type, identity, and JDBC settings for your database.

    Use Case: Customer has Splunk DB Connect installed with connection setup and would like to write to an existing database.

    Data Tab & Outputs

    Navigate to the Splunk DB Connect app. We will need to navigate to the Data Lab tab in the top left and click on “outputs.” This section should currently be empty unless there are already outputs configured. We will click on the add new outputs in the top right to begin the setup of our outputs.

    Search

    This is where the possibilities are endless for what you can write to your database. You can either create a search based on specific fields you would like to map to the database – for example, creating a custom search will allow you to map specific field-value pairs to an existing table in a database and either replace current values in the table or append new values – or use a saved search job that already has important information that can be pushed to the database. Either way, you can use the search results and put them in the existing table.

    Choose Table

    *Must have a connection already established in the app with an external database.* In this section, you will choose the connection to the database you created when initially setting up Splunk DB Connect. Next, you will want to select the “catalog” you will want. This is essentially the database you want to connect and append results to. In some rare cases and testing purposes, you may have a database with only one table. In that case, the schema will not be an option since there is only one schema. If your database has multiple tables, you will be given the option to select a schema to map the fields to. Once the schema is selected, Splunk will query and show a preview of the database you will be working in and existing data in the table. Confirm this is the correct database and has the correct values and click next.

    Field Mappings

    Depending on your field names and table names, you will map accordingly. Click on “add new search field” and map based on search and table names. For example:

    Search query has a field named product_Id that shows product name with last 4 digits Table has a field name productId that displays the productId ESIN number

    This will allow you to push the new field, product_Id, to the database and append it. Upsert: There is a box at the bottom that, if selected, will update any table rows that have the same unique ID specified in the dropdown. This means that if there is an ID # 22 and it is constantly changing, having this box selected will change ID # 22 each time. If this box is not selected, it will simply add ID # 22 to a new row each time it changes.

    Set Properties

    This section is the finalization and setting up basic information like name and description of output. Under “parameter settings,” you are able to set up query timeout to increase or schedule this output on a frequency basis based on a cron schedule. If you use cron to schedule this every two minutes it will update your database if there is any new data created in Splunk based on your search and update it on the database. Complete! You have set up your first output with Splunk DB Connect. If you are running a scheduled output, check your database to see the updated results from your Splunk search in your database.

    To learn more, or if you have any questions, contact us by filling out the form below:

  • Getting Started with the Splunk App for Infrastructure and Using it as the Basis for your ITSI Entity Strategy

    Getting Started with the Splunk App for Infrastructure and Using it as the Basis for your ITSI Entity Strategy

          By: Brent Mckinney  | Splunk Consultant

    As the name implies, the Splunk App for Infrastructure (SAI) allows you to monitor and troubleshoot your business’s infrastructure with pre-built and highly customizable displays. SAI provides insight into all layers of your organization’s infrastructure. Splunk’s IT Service Intelligence (ITSI) is a premium offering that allows you to further monitor your infrastructure, through the means of setting analyzing KPIs across all entities in your organization. ITSI utilizes machine learning to baseline what is normal behavior and help identify anomalies in your data. Getting started with Splunk App for Infrastructure There are 3 major components of the SAI: Getting Data In, investigating your Data, and setting up alerts. The first step is to decide what you want to monitor. SAI offers a handful of options to bring in data, from a variety of sources. Once the SAI is installed in your Splunk environment, you can visit the “Add Data” page within the app to explore these options. Some options utilize other Splunk-built add-ons like the add-on for AWS, which you’re most likely already using if you’ve onboarded AWS data in the past. Other options allow you to utilize OS daemons like collectd for Linux machines. There are options for Windows, OSX, Kubernetes, and more. Once you’ve begun onboarding data through one of these avenues, you can immediately start investigating. In the “Investigate” tab of the SAI, you can see all entities that were onboarded in the previous step. Splunk uses the term “entity” when describing your individual data sources. This could be a physical server at your organization, a cloud instance in AWS, or any source that you define as a center for monitoring.  The investigate tab shows you a list of all entities, their current status, last time data was collected, and any tags associated. You can also use this page to assign entities to specific groups, that can be used to further classify all components of your infrastructure. From here you can click directly on an entity in the list and see an overview of key metrics that are being collected. This typically shows the OS and current version, network I/O, memory and CPU utilization, and disk space free % by default. You can drill down further by visiting the analysis tab and building custom views by dragging and dropping available metrics to the dashboard. This allows different users to easily build views to monitor their systems. Finally, you can set up alerts for your entities and specific metrics, based on conditions that you define. You can alert if a certain metric exceeds or falls below a certain value, and assign severities. The “Alert” tab is a great way to view and manage all alerts in SAI, as it shows you which entities triggered alerts, each entity’s severity, how many times the alert was triggered, and the timestamps that they occurred. Integrating with ITSI Similar to SAI, one of the first steps in bringing ITSI to life is defining the entities you want to begin analyzing. Luckily, ITSI offers seamless integration with what’s already defined in SAI. Under the “Configuration > Entities” tab in ITSI, you can select “Manage Integrations” and you have the option to integrate both entities and alerts from SAI into ITSI. The key to why this is important is this: SAI offers a way to get data in from a large variety of sources, and makes it easy to choose what you want to monitor from each of these sources, while ITSI specializes in painting a detailed picture on how all of these sources operate and contribute to the health of the overall environment. Using the SAI to define entities, bring in data, and validate metrics, makes setting up services and getting the value of ITSI seamless. ITSI relies on many different data sources if you’ve got a wide range of KPIs you want to monitor, so it can be confusing trying to set up services and monitor KPIs when you’re not sure if the data is even there to support it. SAI solves that problem by allowing you to easily add data to Splunk, verify that the metrics you’re interested in are indeed coming in, and then allowing to import these entities directly into ITSI for analytics. ITSI’s power is analyzing KPI behavior over time, by learning and analyzing the behavior of entities in your organization. ITSI was not built to collect data in the way that SAI does. So using SAI to create and manage entities in your infrastructure makes it easier to simply assign entities in ITSI and begin analyzing, rather than using ITSI as a means of creating entities and validating data. Want to learn more about the Splunk App for Infrastructure and using it as the basis for your ITSI entity strategy? Contact us today!
  • Enhanced Troubleshooting for Blocked Queues

    Enhanced Troubleshooting for Blocked Queues

          By: Eric Howell | Splunk Consultant

     

    Overview

    Splunk’s method of ingesting and storing data follows a specific set of actions. These actions (e.g. event parsing, timestamping, indexing, etc) are separated logically and performed in different pipelines. Please refer to the below, Splunk-provided breakdown in which queue/pipeline these activities are performed.

    Diagram of the Splunk data ingestion pipeline showing parsing, merging, typing and indexing stages with associated queues and processes.

     

    As you can see, actual ingestion of data into Splunk has many different processes that are followed before the data finally finds its resting place within a bucket. At each stage, a configuration file (props.conf or transforms.conf for the majority of activities) will dictate what is done, often tied to provided regex within the .conf file or other attributes within the file. Since there is no one-size-fits-all method to ingesting that expansive myriad of data types and formats that can be brought into Splunk, to say nothing of formatting issues that can happen to a log or data stream, custom ingestion settings are frequently configured to ensure proper data integrity and consistency.

    This also creates a number of places where a configuration or attribute can create conflict (e.g. greedy regex, improper implementation of the “Big 8” props.conf configurations, etc) and cause Splunk to spend more time than absolutely necessary to parse, type, aggregate, or index quickly. These issues may go unnoticed for a long period of time until a larger volume data stream is ingested or during a period of greater activity on the servers providing their logs to Splunk, at which point you can experience significant slow-down in your ingestion process. This can lead to events becoming searchable seconds, minutes, hours (or worse) later than the actual inciting time frame. This could have heavy impact during an outage when teams are attempting to triage or troubleshoot and return an environment to full function.

    Quickly and effectively identifying which queues are being blocked, or causing slow down, is relatively straightforward, but there are configurations that can be implemented to enrich your internal logs to help you pinpoint specific sourcetypes that are your pain points.

    Initial Troubleshooting

    You have determined that events are arriving later than expected, and you suspect that queues are being blocked. The next step would be to determine which specific queues are being blocked. The search provided below will provide insight on which queues are experiencing blocks:

    index=_internal source=$SPLUNK_HOME/var/log/splunk/metrics.log  blocked=true

    (replace $SPLUNK_HOME with wherever your Splunk install is located on your server)

     

    Your results will provide something like this:

    Screenshot of a Splunk log entry detailing a blocked typing queue with metrics for current and maximum queue sizes.

     

    In this example, the typing queue is the blocked queue in question. Now, you’ll be wondering, what exactly am I to do with that? Without additional configurations, the metrics.log is missing some of the robust functionality that will help you pinpoint the specific sourcetype causing the block, but you can reference this information against your knowledge of the ingestion pipeline (the image included at the top of this document) to troubleshoot settings that could be causing slowness during this process.

    It is important to remember the order of queues in the pipeline, as the the queues later in the pipeline experiencing blocks will cause upstream queues to fill up, as well.

    Additionally, the Monitoring Console can provide visualizations to help identify blocked queues by navigating to Indexing- > Performance -> Indexing Performance : Instance (or Advanced).

     

    Expanding Functionality

    You can enrich your visualizations by making a change to limits.conf on your indexers and forwarders. This will provide CPU time information for the RegexProcessor process in metrics.log for host, source, sourcetype, and index.

    Splunk documentation showing the regex_cpu_profiling configuration option to enable CPU time metrics for RegexProcessor.

    This configuration change needs to be made under the [default] stanza. Implemented correctly, the above configuration will look something like this:

    [default]

    regex_cpu_profiling = true

    With this change configured, and your metrics.log providing more robust information, several additional panels in the Monitoring Console will populate with data. These are found here:

    Indexing- > Performance -> Indexing Performance : Advanced

    With this information, you should be able to identify the specific sourcetype that is causing your queue blockages and troubleshoot the configurations specific to that data so as to resolve your issue.

     

    Want to learn more troubleshooting tips for blocked queues? Contact us today!

  • Hide Rows or Panels in Splunk Dashboards

    Hide Rows or Panels in Splunk Dashboards

    By: Yetunde Awojoodu  | Splunk Consultant

    Imagine a use case requirement to present metrics for multiple application groups in a single Splunk dashboard for the NOC with the different application groups also interested in viewing the same metrics for their hosts. Rather than creating a separate dashboard for each application group in addition to the consolidated one for the NOC, one dashboard could address the requests from all the teams. Note however that in this situation, the data presented in the dashboard can be viewed by all the groups.

    These requests can be met by hiding panels or rows in one dashboard. There are perhaps multiple ways to hide panels or rows within a dashboard, but I will be demonstrating how to do so using XML. Your scenario may be quite different from mine but if you need to hide panels or rows, this article should show you how to do so. For simplicity of understanding, my sample data includes only three groups. I have also provided the hypothetical data I used in case you would like to get hands-on in your test lab to understand the way this works. It includes average CPU and memory values for each application group.

    Screenshot of a CSV-style data table showing CPU and memory usage by host and group over a timestamp.

    I will demonstrate this concept using two scenarios. In the first scenario, the application groups would like to view both CPU and memory data for their groups only and the panels for each group appear on a single row in the dashboard. In the second scenario, the NOC wants to see only panels for memory data for all the groups.

    Scenario I – View Only a Selected Row

    First, create your dashboard panels, one panel per metric type with a suitable visualization. At this stage, my dashboard looks like this with average CPU and memory for each application group.

    Splunk dashboard showing average CPU and memory usage by host, segmented by group with bar and gauge visualizations.

    Once you have created the panels needed, create an input with a value for each application group. I have selected the dropdown input because it appears to work best when hiding panels or rows due to the setting and unsetting of tokens. My input configuration looks like this:

    Splunk dashboard editor showing token configuration for a dropdown labeled "Application Group" using the token row_tok.
    Static options for a Splunk dropdown input showing values for application groups including All, CMM, BBC and MNS.

    To hide rows or panels, you will need to include a “change” section in your XML as shown below, making sure to create a token for each group and set or unset tokens based on the panels you would like to see when a particular group is selected.  Also remember to include a depends attribute for each row or panel you are referencing. Here is the change section in my dashboard XML:

    <change>

    <condition label=”All”>

    <set token=”CMM_token”>true</set>

    <set token=”BBC_token”>true</set>

    <set token=”MNS_token”>true</set>

    </condition>

    <condition label=”CMM”>

    <set token=”CMM_token”>true</set>

    <unset token=”BBC_token”></unset>

    <unset token=”MNS_token”></unset>

    </condition>

    <condition label=”BBC”>

    <set token=”BBC_token”>true</set>

    <unset token=”CMM_token”></unset>

    <unset token=”MNS_token”></unset>

    </condition>

    <condition label=”MNS”>

    <set token=”MNS_token”>true</set>

    <unset token=”CMM_token”></unset>

    <unset token=”BBC_token”></unset>

    </condition>

    </change>

    The snapshot below shows a section of my XML including how the depends attribute is specified for each row or panel that may be hidden.

    Snippet of Splunk dashboard source code with red highlights around XML logic controlling row visibility using row_tok token.

    I have selected BBC only in the screenshot below to show you what the dashboard will look like when only one row is selected after configuring hidden rows.

    Splunk dashboard filtered by "BBC" group, showing CPU and memory usage visualizations for relevant hosts.

    Scenario II – View Only Selected Panels

    As in the first scenario, create your panels and configure an input suitable for your use case. I have selected the dropdown input and my configuration looks like this:

    Splunk dashboard editor showing dropdown token configuration for a selector labeled "Metric" using the token panel_tok.
    Static dropdown options in Splunk showing metric choices: All, CPU, and Memory, configured with token suffix settings.

    In this case, after creating tokens for the values in the change section, the “depends” attribute will be specified with each panel rather than each row as in the first scenario. The CPU_token was created for the CPU panels and MEM_token for memory panels. Below is a snapshot of a section of the XML:

    Splunk dashboard XML code highlighting how panel_tok controls the conditional visibility of panels based on selected metric.

    In the screenshot below, I have selected only panels with memory metrics.

    Splunk dashboard displaying average memory usage by host, segmented by group (CMM, BBC, and MNS), with horizontal bar charts for each group panel dynamically shown based on the selected “Memory” metric.

    In summary, hiding panels or rows in a dashboard can be achieved by simply setting and unsetting tokens and specifying the “depends” attribute in the XML for each panel or row. In my opinion, this method is quite straight forward compared to a few others I have come across.

    Have fun Splunking!

    Want to learn more about hiding rows or panels in Splunk dashboards? Contact us today!

  • The 7-Point Checklist for Integrating Splunk Observability Cloud into Your AWS Environment

    The 7-Point Checklist for Integrating Splunk Observability Cloud into Your AWS Environment

    So, you have decided that it is time to say goodbye to outdated legacy monitoring systems. You are tired of relying on systems that only analyze samples of data. Ones that cannot keep up with the speed of your AWS environment (those containers do spin up and spin down quickly after all). It is time to embrace a new solution that can provide your team with the critical insights and support needed to promptly identify, triage, and resolve behavioral abnormalities – Splunk Observability Cloud.  

    If your team has been contemplating an observational methodology, we encourage you to commit. The longer you wait to integrate a tool like Splunk Observability Cloud into your AWS environment, the more likely you are to miss the critical information needed to quickly identify and resolve issues, which could directly impact your team’s performance and your company’s bottom line.  

    Positive performance can have a significant impact on your systems’ ability to convert end users into paying customers. A recent study found that decreasing page load time from eight (8) to two (2) seconds can increase conversion rates by as much as 74 percent. And on the other end of the spectrum, a critical application failure can cost between $500,000 and $1 million.  

    But before you start layering Splunk onto your AWS platform and recoding your software for observability, you need to get organized.

    The 7-Point Splunk Observability Cloud Success Checklist  

    At TekStream, we’ve had the privilege of assisting many organizations in implementing Splunk Observability Cloud. We know what it takes for a successful implementation, and our team of experienced professionals has put together a list of the seven must-haves of any successful Splunk Observability Cloud integration into AWS and accompanying on-premise systems.  

    1. Name Your Implementation Destination 

    Our number one piece of implementation advice? Start with the end in mind.  

    Think ahead to the results and insights that will have the most significant impact on your team and organization. Ask yourself questions like:  

    • – What aspect of your business would benefit from observability? 
    • – What processes do you need to have visibility into? 
    • – What would the business benefit be if you had that information today? 
    • – What information do you need to be able to determine the health of those processes? 

    Observability is very much a purpose-driven methodology, similar to the DevOps methodology. If there is a specific result you are trying to achieve through observability, then you need to integrate observability in a way that aligns with those goals.  

    Identify your desired end-state, then work backwards to develop your implementation plan.  

    2. Understand What Must Change to Prepare Your Organization for Observability 

    Look at your current system and identify what changes you’ll need to make to become observability-ready.  You undoubtedly will have to make some changes to your code to support Splunk Observability Cloud. But code is not the only thing that may need to change.  

    Existing processes, response protocols, and even team mindsets are all aspects of your organization that will need to evolve to embrace observability. Lay out a plan for how you will introduce observability and earn team buy-in before you think about implementing Splunk Observability Cloud.  

    3. Determine Who in Your Organization Needs to Be Involved in The Implementation 

    Yes, your developers will be involved. However, successful Splunk Observability Cloud implementation goes beyond any individual developer. Everyone involved in supporting the business process should be part of the transformation, including site reliability engineers (SREs), DevOps engineers, leadership, and more.  

    Create a list of these individuals and match them to the specific implementation tasks needed for a successful integration. Be sure to include executive sponsorship and leadership support as well as who will be managing the project. Use this list to identify any gaps or overlaps in responsibilities.

    4. Identify Any Third-Party Systems That Need to Be Considered  

    Your first-party systems are not the only technologies that may need to be updated. If your organization uses any third-party tool, you will want to ensure those systems also are integrated into your observability platform.  

    Start with an audit of your third-party systems. Be sure to consider the limitations and supporting framework of each platform. Is it possible to integrate the current third-party system with Splunk Observability Cloud? Is it necessary?  

    Once you complete your assessment, affirm that your timeframe and roadmap align with your findings. You may need to account for additional time, support, or resources.   

    Additional Consideration: To accurately assess the ease of integration of your third-party tools, you may need to ask your vendors for additional access to the system. Check with each third-party platform to see if you have an opportunity to peek under the hood and gain insight into their system.  

    5. Put Together a Clear Implementation Timeframe 

    Do you have a specific end-time that your observability platform must be operational?  

    Of course, nearly every organization will say, “as soon as possible.” However, we believe that a successful timeframe considers the scope of the implementation lift as well as the resources your organization can allocate.  

    Align your timeframe directly to your roadmap by including sub-goals, milestones, deliverables, and other accountability metrics. Not only will this help you understand if your ideal timeline is too aggressive for the scope of the endeavor, but it also will help your team determine if additional resources are needed to complete the project within the desired timeframe.  

    6. Clarify a Specific Approach to Your Implementation 

    How are you planning on rolling out Splunk Observability Cloud? Are you only adding observability to new code? Are you rolling out one application or process at a time? Are you recoding all technologies before implementing them across your entire AWS environment?  

    Some of these implementation options may be more practical and useful than others. Take the time to investigate the feasibility and bottom-line impact of each approach. Do not get distracted recoding systems that will not help your organization reach its performance monitoring goals.  

    7. Choose an Implementation Partner

    If the above sounds daunting, know that you do not have to go it alone. The right partner will guide your team through each of these points, lending their proven experience and process to better ensure a successful Splunk Observability Cloud implementation.  

    At TekStream, we work with our clients to form a complete understanding of their observational goals, as well as the systems and processes that will need to be updated to achieve the desired outcome.  

    From there, we will develop a timeline and implementation roadmap that takes you from where you are today to where you want to be with observability. Along the way, we will provide our strategic recommendations and insights across several project aspects that are imperative to a successful AWS integration

    Get Started Today 

    Ready to abandon your legacy monitoring tools in favor of a system that can keep up with the ephemeral nature of AWS? We can help. TekStream has proven experience assisting companies with their adoption of observability. Our team of dedicated experts stands ready to offer our support. Together, we will craft an implementation strategy that aligns directly with the needs of your team. Reach out to us today to get started. 

    Interested in learning more about observability and how Splunk Observability Cloud can help you monitor and improve your AWS platform? Download our latest eBook:

    The essential guide to observability: How to Leverage AWS and the Splunk Observability Suite to Improve Your DevOps Performance.

  • Unlock Observability: 3 Ways Splunk Observability Cloud Works with AWS to Improve Your Monitoring Capabilities

    Unlock Observability: 3 Ways Splunk Observability Cloud Works with AWS to Improve Your Monitoring Capabilities

    According to the numbers, there are over 1,000,000 active AWS customers. In fact, there is a good chance that, like Netflix, Facebook, and LinkedIn, you, too, are using Amazon Web Services to support all or a portion of your cloud-based platforms and systems. Cloud technologies like AWS provide a host of benefits including scalability, cost-efficiencies, and reliability. But the very nature of cloud processing also introduces new layers of complexity. One critical added complexity is in monitoring cloud systems to identify and resolve issues. Traditional alert monitoring tools were not designed to address the ephemeral nature of cloud processing.  

    Fortunately, Splunk has brought a full observability suite to market that integrates seamlessly with AWS’s portfolio of services to provide AWS users and their DevOps teams with the tools they need to improve the performance of their cloud-based systems. Below, we have laid out a brief primer on observability and paired that overview with three ways that the Splunk Observability Cloud works with AWS to streamline your monitoring.  

    Introduction to the Splunk Observability Cloud 

    While there is no shortage of observability tools on the market, Splunk’s acquisition of SignalFX in 2019, its subsequent additions to the platform, and its existing AWS integrations make it a powerful choice for organizations that use AWS as well as other leading cloud solutions like Microsoft Azure and Google Cloud Platform.  

    Splunk offers a fully integrated observability set of products designed to bring all metric, trace, and log telemetry into a single source of data truth. Additionally, you can seamlessly merge this data with other Splunk Enterprise data such as security, IT and DevOps for the most comprehensive and integrated view of your environment. 

    The Splunk Observability Cloud is comprised of several monitoring and observability products, including:   

    • – Splunk Infrastructure Monitoring: AI-driven infrastructure monitoring for hybrid or multi-cloud environments.  
    • – Splunk APM: NoSample™ full-fidelity application performance monitoring and AI-driven directed troubleshooting. 
    • – Splunk On-Call: Incident response and collaboration.   
    • – Splunk RUM (coming soon): Works with Splunk APM to provide end-to-end full-fidelity visibility by providing metrics about the actual user experience as seen from the browser. 
    • – Splunk Log Observer: Built specifically for SREs, DevOps engineers, and developers who need a logging experience that empowers their troubleshooting and debugging processes. 

    Three Benefits of Integrating Splunk Observability Cloud with AWS 

    For organizations already using AWS, Splunk works seamlessly with Amazon to provide DevOps teams with out-of-the-box visibility across their complete AWS environment.  With Splunk Observability Cloud, all data is shown within a single system, making it easy for your team to identify issues across any of the AWS tools you utilize.  

    As data passes from your AWS services into your Splunk environment, it is analyzed in real time across the full Splunk Observability Cloud. The result is comprehensive reporting and monitoring that allows you to identify and respond to issues the moment they occur – regardless of your platform’s size. 

    A Venn-diagram style graphic displaying the features of AWS and Splunk.

    While there are several efficiencies and benefits to be gained by layering Splunk Observability Cloud onto your AWS environment, here are three that stick out to our team:  

    1. Global Monitoring of Amazon Container Services 

    Splunk’s Infrastructure Monitoring tool (part of the Observability Cloud) is built to specifically monitor the ephemeral and dynamic nature of container environments. Through this tool, customers can have key insight into Amazon ECS and Amazon EKS performance characteristics and containerized applications.  

    Out-of-the box dashboards and reporting provide teams with the information they need to capture immediate value from the platform.  

    2. Real-time Fidelity Tracing 

    Are you tired of having to sample data or work with limiting data ingestion caps? Splunk Observability Cloud includes two powerful tools that, together with AWS, provide teams with end-to-end full-fidelity tracing. 

    First, Splunk APM utilizes OpenTelemetry-enabled instrumentation to ingest all trace data. No more sampling. Splunk APM captures, analyzes and stores 100% of available trace data. Once captured, Splunk Real User Monitoring (RUM) can tie that trace data to specific user actions within your AWS environment.  

    These systems work in tandem to provide your team with rich visibility into the bugs and bottlenecks that could harm your user experience.  

    3. Automated Incident Response 

    Not only does Splunk Observability Cloud provide real-time visibility across your complete cloud stack, but it also can reduce your team’s mean time to recovery (MTTR) through automated responses. Through the platform, DevOps teams can set automated remediations that fire regardless of human oversight.  

    Built-in artificial intelligence and machine-learning capabilities help further improve the efficiency and latency of automated responses.  

    Enhance Your AWS Platform with Splunk Observability Cloud 

    If your legacy monitoring systems cannot keep up with the complexities and intricacies of AWS, it’s time to make a shift in your team’s mindset towards observability. By making the structural changes necessary to facilitate observability and embracing robust tools like Splunk Observability Cloud, your team will gain the capacity to improve the performance of your AWS environment.  

    Interested in learning more about observability and how Splunk Observability Cloud can help you monitor and improve your AWS platform? Download our latest eBook:

    The essential guide to observability: How to Leverage AWS and the Splunk Observability Suite to Improve Your DevOps Performance.

  • Four Small Java/Coffee Tips That Result in Better Performance (and Better Taste)

    Four Small Java/Coffee Tips That Result in Better Performance (and Better Taste)

    By: William Phelps | Senior Technical Architect

     

    It’s really no secret that it’s little things that often yield the biggest results.

    As you are reading this article, chances are that you are perhaps drinking a cup of coffee. There are quite a few small things about coffee that you may or may not know.

    • – Simply adding cream to your coffee will keep the coffee warmer about 20 percent longer. This occurrence is similar in nature to the effect that allows warm water to be frozen into ice cubes faster than cold water. Try it and see.
    • – Adding a small pinch of salt to your coffee will cut down on the acidity of the coffee, and results in a much smoother cup of coffee. Add the salt to the coffee pot if you brew by the pot, or to your cup if you like a single-serve variety.  (I personally use kosher salt for this trick, not regular table salt… you’ll likely use too much with the table salt.)
    • – Coffee grounds are an excellent fertilizer source for house plants. I’d imagine the amount found in a regular single-serving cup or Keurig “K” cup would be ideal for small potted plants.
    •  – The first webcam was implemented by Cambridge University to monitor a coffee pot. The coffee was disappearing very quickly, so a webcam was used to monitor when the pot was finished brewing so people could get a cup.

    Rather than going to the extreme of putting a camera on a pot, some folks opt to go out for their coffee fix.  Have you ever noticed that the cup of coffee you buy in-store at Starbucks tastes so much better when brewed in the shop, than from the same bag of grounds that you bought in the shop, and then took it home and brewed it yourself?  This is likely due to a handful of reasons, but the biggest reason is probably the tuning of the exact process that the average barista follows.

    The very same tuning principle applies to your Java program. “Compile once, run anywhere” code is still very dependent on the environment in which it’s deployed. Think of Java as the coffee whereas the Java Virtual Machine (“JVM”) is the coffee pot that comes in the Java Development Kit (“JDK”). A better “pot” and the process of handling said pot will result in more consistent results. There are a lot of “coffee pot“ manufacturers but some basic setups are all the same.

    • –  “Avoid installing Java into a file system location with spaces in the path.”Primarily a Windows issue, the Windows Java installer suggests a default installation path in the “Program Files” directory. This is a problem for many programs when your programs start looking for jars to add in the class loader. Unless the program was coded to wrap the classpath in quotes, your program will fail in very odd ways that is hard to debug. While this is predominantly a Windows problem, the same thing can happen on other operating systems.  A coffee pot will have a proper storage “space” in your home/office. Ditch the space however in your install paths.
    • –  “Install the JVM/JDK into a generic path location.”While this may seem counterintuitive, once the basic installation is done, the process of updating the JVM/JDK in the future becomes very simple. Seeing the version of the JDK in a file path is a weird comfort for some people, but having to edit numerous files to update the location reference is fraught with issues, and in some cases may be impossible.  It’s simply easier for other folks to find the “working” coffee pot if it’s always stored in the same place. Multiple pots can exist on a server, but this approach makes it clearer which pot is being used.
    • –  “Change/update the random number generator source.”Have you ever got tired of waiting for the coffee pot to heat up? Sometimes a JVM is really sluggish in performing because of insufficient entropy on a server. This is a somewhat complex topic, but in essence, some operating systems rely on basic I/O to generate input for random number generation. If the generation is slow, and multiple processes are waiting for a number, your program can seemingly hang, when in reality it’s just waiting in the queue.

    There is a small change that can be made in the JVM to change the random number generation process to look at another source. In the jdk’s jre/lib/security folder, find the java.security file. Search for the line that references “secure.random”.

    Code snippet showing a default Java security property setting for secure random number generation using /dev/random.

    Add a . to the setting as shown, and restart your processes that use the JVM.

    Java configuration line using a subtle path variation (/dev/./random) to potentially bypass security restrictions.

    This trick has been shown to significantly improve startup times in WebLogic server.

    • – “Reinstall any certificates from the old JVM to the new JVM.”Finally, if the coffee pot is getting an upgrade, some of the “attachments” may still be needed. This is true of certificates that may have been installed in the cacerts file of the old JVM. Before upgrading the JDK make a copy of the existing cacerts file. Then you can reimport the certificates by basically merging the deltas from the old cacerts file into the new version.
    Sample keytool command lines for importing a certificate into Java keystore, shown for both Windows and Linux environments — commonly used in configuring secure Splunk environments.

    This command will only insert/import certificates that exist in the old cacerts file, but not in the new cacerts file. This is really handy when it’s not known which exact certificates have changed over time.

    It’s the little things that make both a smooth cup of coffee and a smooth-running JVM.

     

    Want more Java tips? Contact us today!

  • TekStream Recognized in 2021 Splunk Global and Regional Partner Awards

    TekStream Recognized in 2021 Splunk Global and Regional Partner Awards

    TekStream Named 2021 Global Services Partner of the Year and AMER Professional Services Partner of the Year for Outstanding Performance

      TekStream today announced it has received the 2021 Global Services Partner of the Year and 2021 AMER Professional Services Partner of the Year awards for exceptional performance and commitment to Splunk’s Partner+ Program. The 2021 Global Services Partner of the Year Award recognizes a partner with excellence in post-sale and professional services implementations. This partner demonstrates a strong commitment to technical excellence, certifications, and customer satisfaction. The 2021 AMER Professional Services Partner of the Year Award recognizes an AMER Splunk partner that is actively engaged in services implementations, in addition to having a strong commitment to training and certification of their organization. For more information on Splunk’s Partner+ Program, visit the Splunk website. “We are delighted to have won the 2021 Global Services Partner of the Year and 2021 AMER Professional Services Partner of the Year awards. It is a fantastic achievement to be awarded and even more satisfying to contribute to the success of Splunk and our customers. Our team is very excited to be recognized for its efforts and expertise and will wear this prized recognition proudly,” said Matthew Clemmons, Managing Director at TekStream. “Congratulations to TekStream for being named the 2021 Splunk Global Services Partner of the Year and 2021 AMER Professional Services Partner of the Year,” said Bill Hustad, VP, Global GTM Partners, Splunk. “The 2021 Splunk Global Partner Awards highlight partners like TekStream that deliver successful business outcomes, as well as help our joint customers leverage Splunk’s Data-to-Everything Platform to drive value and unlock insights. Additionally, TekStream shares our commitment of prioritizing customer success.” The Splunk Partner Awards recognize partners of the Splunk ecosystem for industry-leading business practices and dedication to constant collaboration. All award recipients were selected by a group of Splunk executives, thought leaders, and the global partner organization. “We are very honored to have been selected by Splunk for not just one, but two Partner of the Year awards. TekStream prides itself on doing what is right for the customer above all else, and our commitment to that mantra drives everything that we do. We value our partnership and look forward to helping Splunk grow the ecosystem on its way to $5B,” said Karl Cepull, Senior Director, Operational Intelligence at TekStream. About TekStream TekStream accelerates clients’ digital transformation by navigating complex technology environments with a combination of technical expertise and staffing solutions. We guide clients’ decisions, quickly implement the right technologies with the right people, and keep them running for sustainable growth. Our battle-tested processes and methodology help companies with legacy systems get to the cloud faster, so they can be agile, reduce costs, and improve operational efficiencies. And with 100s of deployments under our belt, we can guarantee on-time and on-budget project delivery. That’s why 97% of clients are repeat customers. For more information visit https://www.tekstream.com/.