Category: Blog

  • Using Splunk to Monitor USB Removable Storage Devices

    Using Splunk to Monitor USB Removable Storage Devices

    By: Pete Chen | Splunk Practice Team Lead

     

    Windows Event Log Monitoring

    Abstract

    Information security is only as effective as physical security policies. Splunk continues to be a valuable tool in providing insight into risk and threat detection. As more security operation centers (SOC’s) look to limit sensitive data being exposed, USB removable storage devices (thumb drives, external hard drives, cell phones with high capacity storage, and SD cards) introduce risk. These devices are helpful in providing a backup location for important documents and files. They can help in moving data from one system to another. They can also be used to steal data, or move them into an unsecured location. Using Splunk, a security team can now monitor when these devices are plugged into systems.

    Using Windows

    Windows information on USB devices can be found here:

    Information on USB devices in Windows needs to be enabled before moving forward. The current default in administrative policy is to have this feature disabled. Enabling this feature will require administrative access to Windows.

    Test Procedures

    Devices
    By default, the Windows logging option for operations is disabled. This means there is no historical data to draw upon. Once operational logging is enabled, it’s important to generate data by plugging in different devices. Record the time a device was plugged in, when the device was stopped via software, and when the device was physically removed.

    Time – InsertTime – StopTime – RemoveDevice
    10:20am10:23am10:24amGeneric USB Drive
    10:29am10:30am10:31amKingston Micro SD Card
    10:33am10:36am10:37amSeagate USB External Drive
    10:45am10:52am10:53amWestern Digital External Hard Drive Micro USB

    Different devices should produce different results, especially when vendor ID and device ID is recorded. A list of USB ID’s can be found here:
    https://www.linux-usb.org/usb.ids

    Adding Data to Splunk

    Perform a series of tests (inserting and removing USB devices), and generate a log full of events to be exported. While it’s possible to ingest the data through the Splunk Add-On for Windows, doing so without the add-on will require exporting the log as a text file, where the fields were separated by Tab.
    In Splunk, add the data using the UI. Select Add Data, and the Upload.

    Screenshot of Splunk’s “Add Data” interface showing three main options: upload, monitor and forward, each represented by green icons.

    Based on how the data was exported from Windows, select the following sourcetype:

    Structure >> TSV (Tab-Separated Value)

    Splunk interface showing the source type dropdown menu with categories like Application, Database, Email, Network & Security and Structured data formats like CSV and JSON.

    Create a new index, such as “wineventlog”, to group the events and make searching easier.

    Event ID

    Identifying Microsoft’s Event ID’s is one of the requirements in identifying when a USB device has been inserted. This helps to better refine a search for qualifying events, eliminating non-useful events from the group. A search was used in Splunk to count the number of event id’s seen in the logs.

    The values of the event ID’s are:

    1000Startup of the driver manager service. The Driver Manager service started successfully
    1003Creation of a new driver host process. The Driver Manager service is starting a host process for device (Device){GUID}.
    1004Creation of a new driver host process. The host process ({GUID}) started successfully.
    1006Shutdown of a driver host process. The host process ({GUID}) is being asked to shutdown.
    1008Shutdown of a driver host process. The host process ({GUID}) has been shutdown.
    2000Startup of a new driver host process. The UMDF Host Process ({GUID}) is starting up.
    2001Startup of a new driver host process. The UMDF Host Process ({GUID}) started successfully.
    2003Loading drivers to control a newly discovered device. The UMDF Host Process ({GUID}) has been asked to load drivers for device (Device).
    2004Loading drivers to control a newly discovered device. The UMDF Host is loading driver WUDFUsbccidDriver at level 0 for device (Device).
    2005Loading drivers to control a newly discovered device. The UMDF Host Process ({GUID}) has loaded module C:windowsSystem32USER32.dll while loading drivers for device (Device).
    2006Loading drivers to control a newly discovered device. The UMDF Host successfully loaded the driver at level 0.
    2010Loading drivers to control a newly discovered device. The UMDF Host Process ({GUID}) has successfully loaded drivers for device (Device).
    2100Pnp or Power Management operation to a particular device. Received a Pnp or Power operation (RequestMajorCode, RequestMinorCode) for device (Device).
    2101Pnp or Power Management operation to a particular device. Completed a Pnp or Power operation (RequestMajorCode, RequestMinorCode) for device (Device) with status 0x0.
    2102Pnp or Power Management operation to a particular device. Forwarded a finished Pnp or Power operation (RequestMajorCode, RequestMinorCode) to the lower driver for device (Device) with status 0x0.
    2105Pnp or Power Management operation to a particular device. Forwarded a Pnp or Power operation (RequestMajorCode, RequestMinorCode) for device (Device) to the lower driver with status 0xC00000BB
    2106Pnp or Power Management operation to a particular device. Received a Pnp or Power operation (RequestMajorCode, RequestMinorCode) for device (Device) which was completed by the lower drivers with status 0x0
    2900Shutdown of a driver host process. The UMDF Host ({GUID}) has been asked to shutdown.
    2901Shutdown of a driver host process. The UMDF Host ({GUID}) has shutdown.

    *Value labels represented inside < >, actual events will have specific values in place.

    In reviewing the events, we concluded Event ID’s 1003, 2003, and 2102 provided the best group of events to identify when a device is inserted and removed, without being overly verbose. If Event Filtering is available prior to being ingested into Splunk, these events would be the most valuable. From what we have seen, 1003 seems to capture USB Removable Drives, but will not capture mobile devices. In addition, 2003 seems to capture MTP devices.

    Splunk

    The Search
    Ultimately, the data with corresponding Event ID’s were used to formulate a search which would return relevant information about when a USB device was inserted or removed.

    Block of search query code written for Splunk using index filtering, renaming fields, regular expressions and eval statements to categorize device events.

    Line Notes

    Table listing Splunk query line numbers alongside notes that explain the purpose of each line, including filtering logs, creating fields and transforming time formats.

    The Results

    Search results table in Splunk showing columns like date_time, host, event_id, action, device and Vendor_id to track device connection events across a system.

    Future Consideration

    In the search, important fields are pulled out which are not heavily used in the search above. GUID, Vendor ID, Product ID, device names can all be used to further elaborate on devices specifics, and correlate these events with other actions. The process GUID may be linked to a different process, potentially one which reveals actions taken from or to the removable USB device. It’s worth exploring further, and getting a more detailed analysis on USB Mass Storage Devices.

    Want to learn more about using Splunk to monitor USB removable storage devices? Contact us today!

    [pardot-form id=”17340″ title=”Blog – Pete Chen – Using Splunk to Monitor USB Removable Storage Devices”]

  • Machine Learning with Splunk: Fitting a Model

    Machine Learning with Splunk: Fitting a Model

    What is machine learning? A quick search online will return definitions using the words algorithm, statistics and model. A slightly less technical definition would be that machine learning is a general term used for formulas to determine outcomes based on features from provided data. If the goal was to classify plants, for example, height, petal color and environment might all be features in the data set.

    The objective for today will be to learn how to fit a model using Splunk’s Machine Learning Toolkit.  We will be using data from the passenger list of the Titanic to fit a model to predict who survived. The data set can be found at https://www.kaggle.com/c/titanic/data. The training set is what will be used to build and validate our model.

    The data set contains the features passenger ID (PassengerId), passenger class (Pclass), the name of the passenger (Name), the sex of the passenger (Sex), the age of the passenger (Age), the number of siblings and spouses on board with the passenger (SibSp), the number of parents on board with the passenger (Parch), the passenger’s ticket number (Ticket), the amount of the passenger’s fare (Fare), the passengers cabin number (Cabin), and the port the passenger embarked from (Embarked). The training set also has the additional feature of Survived.

    Spreadsheet showing Titanic passenger data with columns for PassengerId, Name, Age, Sex, Fare, and other details.

    Now that the data has been gathered the first step is to clean the data or in other words to make the data as complete and useful as possible. Not all features are useful; a good first step is to remove features that have no predictive value. It is better to leave features than to remove them before determining the predictive capabilities, but features that always have a unique entry such as ticket and name can be removed. (PassengerId will remain as the identifier for each entry.) There are a couple of options with Cabin; it can either be removed or turned into a binary feature. In this case the binary would be zero (0) for no cabin and a one (1) if a cabin is listed. For simplicity this feature will be removed as well due to a lack of information.

    The next step involves dealing with data that is not complete but too important to remove. The age feature is not complete but due to “women and children first” age will most likely be a strong predictor in who survives. One option is to remove all entries missing the feature. While not a majority of the entries, a significant number are missing age and removing them may impact the predictive capabilities of other features.

    A better option would be to insert a value that has little to no effect on the age feature and allows for the predictive potential from the other features to be used in the model. Setting an age too low will imply the passenger is a child; setting it too high may not be accurate either. The best option is to fill the blanks with the average age of all the passenger given. This should minimize any effects filling the blanks will have and allow the entries to remain in the data set. The average age for the data set is just under 30. Since age is counted in whole numbers the blank ages will be replaced with 30.

    Partial view of Titanic dataset in Excel with selected columns including Age, Sex, Pclass, and Fare.

    Now that the data has been cleaned it is time to begin using Splunk to build our model! Load the train.csv file into Splunk (it won’t have a timestamp so don’t worry about that) and then click on the Machine Learning Toolkit app. Once inside the app go to experiments and click on create new experiment and select predict categorical fields (since survivor is a category with only two possible values of one (1) or zero (0)). Name the experiment anything you like.

    Splunk Machine Learning Toolkit logo featuring a brain inside an orange square.

    In the search field enter “source=train.csv”. The results should be 891 events. Select “logistic regression” for Algorithm, “survived” in field to predict, and set the split for training/test to 80/20. The split will allow for 80 percent of the data to be used to fit the model and 20 percent to be used to validate the model. The split is randomized from the 891 entries of the entire data set.

    Splunk search bar showing query for source equals train.csv with 891 events loaded.

    The final step in building this model is feature selection. Begin by selecting all the features except passengerId in the fields to use for predicting as shown below.

    Splunk feature selection dropdown showing checked options like Age, Embarked, Fare, and Pclass.

    Depending on how the 80/20 split is done your results will vary but most likely it will be somewhere around 75 percent.  75 percent is better than what is expecting from guessing (50 percent), but the model can be improved. Unselect Embarked from the fields to use for predicting and fit the model again. The model should now be in the high 70’s to low 80’s.  The terms precision and recall measure the accuracy of the model. Precision is the percentage of returned values that were accurate and recall is the percentage of accurate values that were returned. In this scenario precision and recall are the same.  In the experiment history previous setting can be loaded and earlier models can be fit again allowing for several variations of the same model without needing different experiments.

    Splunk machine learning evaluation metrics showing Precision, Recall, Accuracy, and F1 score, all at 0.84

    The Splunk Machine Learning Toolkit is a powerful toolkit with the potential to take your data to the next step from descriptive to predictive. The Machine Learning Toolkit, however, is just that – a tool. Loading data into the MLT or knowing Splunk are not enough.  Understanding how to clean and wrangle data to have the most predictive impact is necessary as well.

    Want to learn more about machine learning with Splunk? Contact us today!

    [pardot-form id=”16985″ title=”Blog – Abe Hardy – Machine Learning with Splunk: Fitting a Model”]

  • New Feature in Splunk to Monitor Environment Health

    New Feature in Splunk to Monitor Environment Health

    A new feature introduced in Splunk 7.2 is the Splunkd Health Status Report. Monitoring Splunk’s status by checking if Splunkd is running may tell you if Splunk is running, but it won’t tell you if there’s a problem developing while Splunk is running. In the latest version of Splunk, you’ll only need to look next to your name to figure out how Splunk is doing.

    Splunk Enterprise homepage showing icons for product tours, data inputs and documentation.

    Once you click on the icon, a screen will pop up with the health status of Splunk.

    Health status explanation screen in Splunk with descriptions of green, yellow, gray and red indicators.

    The status tree is broken down into 4 areas, Splunkd, Feature Categories, Features, and Indicators.

    SplunkdThe overall status of Splunkd is based on the least healthy component in the tree. The status is for the specific host only.
    Feature CategoriesThis is the second stage, and represents a logical grouping of features. Feature categories won’t have a status.
    FeatureEach feature status is based on one or more indicators, with the least healthy indicator status as the status for the particular feature.
    IndicatorsIndicators are the lowest levels of measurable health status that are tracked by each feature. The colors for status change as health for each feature changes.

    In the event more details are required, the health report also generates a log, and can be found at: SPLUNK_HOME/splunk/var/log/splunk/health.log

    Here’s a sample of the log:

    Splunk system configuration screen showing navigation options for data, knowledge and monitoring.

    Changing notification settings can be found in the Settings menu. From Settings, select Health report manager.

    Splunk navigation interface showing administrative options like Add Data and Monitoring Console, with categorized links under Knowledge, Data, System, Distributed Environment, and Users and Authentication.

    From there, each feature can be enabled or disabled, and the thresholds set.

    Table listing Splunk system features with toggle buttons to enable or disable status thresholds.

    As with other functions and features in Splunk, settings for health monitoring can be changed through a conf file. This is located in $SPLUNK_HOME/etc/system/local/health.conf. Alerting thresholds, intervals, and seriousness can all be defined in the configuration file. A tremendous benefit to being able to configure the health monitoring is the ability to add alerts. When an alert fires, it can send a notification via email or PagerDuty. To enable this feature, simply add the following stanza to health.conf:

    [alert_action:email]

    disabled = 0

    action.to =  <[email protected]>

    action.cc = <[email protected]>

    action.bcc = <[email protected]>

    And finally, the health monitoring feature can be used by other monitoring tools. Using a curl command, other tools can help to better monitor your Splunk environment. The curl command is:

    curl -k -u admin:pass https://<host>:8089/services/server/health/splunkd

    When things go wrong, it may be difficult to determine where to begin troubleshooting. The monitoring tool helps by proving a root cause, and the last 50 related messages. This will help the admin better asses the problem and remediate it.

    Health Status of Splunk screen displaying a data durability error with detailed log messages.

    Splunk health monitoring is a simple, effective tool to help keep a Splunk environment healthy. Adding features, tuning indicators, adjusting intervals, and setting

    alerts are all ways this new tool pre-loaded into Splunk can help ensure Splunk is healthy.

    Want to learn more about Splunkd Health Status Report? Contact us today!

    [pardot-form id=”16923″ title=”Blog – Pete Chen – New Feature in Splunk to Monitor Environment Health”]

  • Version Source Control for your Splunk Environment

    Version Source Control for your Splunk Environment

    When Splunk environments grow in organizations, the need for source control also grows with it. It is good practice to use the widely available source control tools that are available for enterprise level source control. There are many Version Source Control (VCS) software available online, but the one most widely used is the open source, Git, which has proven to be a very powerful tool for distributed source control. Using Git, multiple Splunk Admins can work with their local repositories and the changes shared separately. To take the conversation further, I would separate the need for version control in two major segments
    • User Applications
    • Administrative Applications
    I have broken down the applications into two segments to enable ease of management for Splunk Admins. The User Applications should consist of the search artifacts that are built and developed as use cases evolve and change often, whereas the Administrative applications I would classify as those which are mostly used to deploy setup Splunk like TAs and other deployment apps. These applications rarely change once set up unless new data sources are on-boarded, there are significant changes to the architecture, etc. In the context of this blog post, we will focus on the administrative applications. These apps are the backbone on your Splunk deployment and should be cautiously changed to make sure there is no downtime in the environment. Changing these files could cause irreparable damage to the way data is indexed to Splunk, causing loss to indexed events, especially when changing sourcetypes, etc. As I already mentioned, there are numerous flavors of source control and depending on your taste, you can use either. If you’re starting off fresh with source control, Git is easy to set-up and you can use it with Github or Atlassian Bitbucket. Both these tools can help you get started in a matter of minutes, where you can create repositories and setup source control for your distributed Splunk environment. The Git server will host all the master repos in the Splunk Environment for all the administrative apps. The admins who need make edits do it in the following two ways;
    • Edit the master directly.
    • Create local clones of the master, make the required edits, commit them to the local branch and then push it out to the remote repo.
    Ideally, no one should edit the master branch directly to reduce the risk of unwanted changes to the master files. All admins should edit in local branches, and then once the edits are approved, they should be merged to the master. There should be three Master repos with their respective apps and TAs in those repos. These repos should correspond to the following servers;
    • Cluster Master for Indexers
    • Deployer for Search Head Cluster
    • Deployment Server for Forwarders
    To deploy the repos to the servers, you can use git hooks or tie your git deployment back into your puppet or chef environment. This is based on your discretion and how you are comfortable with distributed deployment in your organization. The repos should be deployed to the following directories
    • Cluster Master to $SPLUNK_HOME/etc/master-apps/
    • Deployer to $SPLUNK_HOME/etc/shcluster/apps
    • Deployment Server to $SPLUNK_HOME/etc/deployment-apps
    After the updated repos are deployed to the respective directories, you can push them out to the client nodes using Splunk commands. If you are interested in more information, please reach out to us and someone will get in touch with you and discuss options on how TekStream can help you manage your Splunk environment. [pardot-form id=”16859″ title=”Blog- Zubair Rauf – Version Source Control for your Splunk Environment”]
  • TekStream AXF 12c Upgrade Special Components

    TekStream AXF 12c Upgrade Special Components

    TekStream’s extension to Oracle’s Application eXtension Framework (AXF) provides enhanced customizations surrounding Invoice Reporting using Business Activity Monitor (BAM), auditing of user actions, and QuikTrace of BPEL process instance.   With the introduction of the 12c upgrade available with release 12.2.1.3 TekStream discovered that two of its reporting components were highly impacted by paradigm changes in 12c.   TekStream has gone through multiple iterations of 12c upgrade and has incorporated the necessary reporting enhancements to provide the functionality of the 11g release to its 12c counterpart.  This paper highlights the enhancements to the package to bring it on line with 12c.

    BAM Dashboards:

    The Business Activity Monitoring component of the SOA solution was significantly improved in the 12c release.  So significantly in fact that it precluded an upgrade path from 11g.   In the official upgrade procedures solutions incorporating this component are instructed to stand up an 11g version for BAM and slowly introduce a 12c version as all of the nuances of the new release are learned such that alternatives can be made.  In addition to a different dashboard component the layered introduction of ‘Business Queries’ and ‘Business Views’  add new elements to the solution that have to be solved before a dashboard can be constructed.  TekStream has done the necessary homework to bring the 11g based system directly online during the upgrade within a new InvoiceAnalytics package to save our customers the effort of introducing an interim solution during the process.  With TekStream’s 12c AXF upgrade we accommodate replacement dashboards, new 12c objects that are introduced with the release as well as upgrade of the 11g BAM data.  Clients will regain functionality (albeit with new upgraded BAM dashboards and underlying components) immediately after going online with 12c.  They will have direct replacements to the ‘Assigned Invoices’, ‘Invoice Aging’, and ‘Invoices’ reports and can use these with all of the 12c enhancements.

    QuikTrace:

    TekStream’s Audit and Reporting package ships with a component labeled QuikTrace which in addition to global Worklist views to locate all active invoices also provided technical tracing capability not available in AXF.   Technical staff can use key data points to find a record within the SOA composite execution stack for those records not active in a worklist and traceable via the global Worklist view.  The capability was based on an 11g primitive ‘ora:setCompositeInstanceTitle’ which on a per composite level allowed for the population of the title field which was then searchable via the Enterprise Manager (em).  The Audit and Reporting package allows for the searching based on Imaging Document ID, Invoice Number, Purchase Order Number, Supplier Name, and a customizable business key.

    With 12c Oracle has changed their paradigm for a more efficient flow trace primitive ‘oraext:setFlowInstanceTitle’ which migrates the search element to a new single element SCA_FLOW_INSTANCE.title per composite flow.  To maintain the same functionality of the 11g system it is necessary to encapsulate all designed search elements into a single location.   TekStream has incorporated this into the Audit and Reporting package to offer the same functionality to its client base.

    Upgrading AXF Clients:

    For AXF clients with the reporting package we have the elements to bring you back online with the features that you are accustomed.    These will be available as soon as you bring AXF back up on 12c.

    For AXF clients without the reporting package be assured that TekStream can get you to a 12c Audit and Reporting point as well.  We understand the 12c data and can pull together the data objects for functional dashboards and can introduce those QuikTrace touchpoints into the 12c based composites for that feature capability.

    Want to learn more about Invoice Reporting using Business Activity Monitor? Contact us today!

    [pardot-form id=”16747″ title=”Blog- John Schleicher – TekStream AXF 12c Upgrade Special Components”]

  • What is Invoice Processing?

    What is Invoice Processing?

    In a nutshell, invoice processing is the set of practices put in place by a company for the payment of the bills it incurs associated with their business.  Essentially, ‘bills’ translate to invoices.  This doesn’t starkly differ from that of an individual managing their personal bills and budgeting their funds to ensure they can meet their obligations and keep creditors happy to ensure they can continue to make the necessary purchases to maintain their individual lifestyle and plan for the future.

    With Invoice Processing in business the primary differences is sheer volume of ‘bills’; the details toward the budget allocation; the handling of the invoice to ensure it is properly approved; and the terms of the payment to the vendor (who sent in the invoice).  As the activities toward Invoice Processing to accommodate the handling are so manually intensive that specialized ‘Accounts Payable’ (AP) staff are set in place to manage the data entry and oversight of the flow of invoices.  Furthermore sophisticated computerized solutions are often employed to manage these activities and reduce the manual overhead.

    Good and efficient Invoice Processing is critical to the business to ensure its ultimate survival in the competitive business marketplace.  Components of Invoice Processing include:

    Invoice Processing Accounting:

    Large business expenditures and planning of such warrant sophisticated budgetary management to ensure that monies aren’t misused and properly allocated toward their intended purpose.  To manage this need budgets are broken down into different categories for which funds are allocated and charged against as invoices are received.  These allocations are very specific to the line of business and require significant attention to detail.  These are often broken down into accounting codes with varying multi-level breakdowns as the allocations are specifically delineated.   Projects and/or tasks provide an alternative method toward these allocations.

    Purchase Orders:

    As part of the accounting processes purchases are frequently managed through an approval process before the expenditure is ever made.  Buyers (or users wanting to make purchases) initiate a request via ‘Purchase Orders’ which identify purchase details; which accounting pot to draw from; and which vendor is targeted for the purchase.  This typically travels through an approval hierarchy based on the purchase amount before it is finalized for the actual purchase.  When the purchase is finally made the corresponding invoice will reference the purchase order (number typically) and processing of the invoice is streamlined as the authorizations and allocations are already in place.   When associated with the PO these are routed for payment.

    NON-PO (non-purchase orders):

    This invoices don’t have the pre-approvals in place and all of the required processing is don’t upon receipt of the invoice.   These often require routing to the requester for appropriate accounting details and acknowledgement that they approve the purchase and in many cases have received the associated items from the invoice.   Upon their acknowledgement then any approvals based on the item spent must be made.   Only after completion of these touchpoints is the invoice routed for payment.

    Recurring Invoices:

    Invoices that are associated with frequent regularly scheduled charges such as utilities are defined as Recurring invoices.   They may be tied to a blanket purchase order but have the processing distinction that prompt attention to the invoice is required as service interruption may occur if not handled expeditiously.

    Payment Terms:

    The payment cycle of invoice processing is determined by agreements with the vendor on how quickly they want to be paid.  Terminology such as ‘NET 45’ (payment is expected 45 days after receipt) are applied to reference these arrangements.  Discounts may apply for processing these invoices within the prescribed timeframe.

    Automation:

    Invoice Processing is still heavily encumbered by paper invoices that require extensive manual intervention by members of the AP staff to key them into electronic invoices so they can be processed.  Automation via Optical Character Recognition to translate these paper images and verify the values are valid against stored data greatly reduces the manual overhead of the AP staff.  The OCR and automation activities though are burdened with varying invoices formats and quality which reduces the potential of a touchless invoice upon receipt.

    The Premier Invoice Automation Solution – Inspyrus

    Consider Inspyrus, as the premier AP automation solution.  Inspyrus offers the best automation solution that can be configured to suit the broadest Invoice Processing needs in the marketplace.   Their solution offers the capability to work all of the major back end financial systems:  EBS, PSFT, JDE, SAP, and others, by effectively offering an abstraction of these Enterprise Resource Planning (ERP) systems with the ability to dynamically route transactions to the relevant instance, even supporting multiple instances for a single client.  You won’t find many automation systems that compete in that regard.   Full automation of paper and electronic invoices reduces the daily costs of invoice processing.  Coupled with the a feature rich set of services that is out of the box and the configuration mechanisms built into the Inspyrus solution allows the diverse client base to match their specific business needs without costly software customizations.

    So if you are talking ‘Invoice Processing’ for your business, you should have make sure you consider Inspyrus for those business needs.

    Want to learn more about Invoice Automation with Inspyrus? Contact us today!

    [pardot-form id=”16307″ title=”Blog – John Schleicher – What is Invoice Processing?”]

  • Optimizing Splunk Dashboards with Post-Process Searches

    Optimizing Splunk Dashboards with Post-Process Searches

    Optimizing Splunk Dashboards with Post-process Searches

    When creating Splunk dashboards, we often have the same search run multiple times showing different types of graphs or with slight variations (i.e. one graph showing “allowed” and another showing “blocked”). This creates more overhead every time the dashboard is opened or refreshed, causing the dashboard to open or populate more slowly and increasing the demand on the Splunk infrastructure. There are other situations or limitations that occur such as user concurrent-search limits.

    With proper optimization techniques a full typical dashboard with 10 panels can run less than three Splunk queries versus the 10 individual searches that would normally run. This is accomplished by using Post-process searches that are easily added in the SimpleXML of the desired dashboard.

    Starting Point of Post-process Searches

    When running a search in Splunk it will return RAW event data or transformed event data. Transformed event data is data that was returned by a search and is placed in the form of statistical tables which is used as the basis for visualizations. The primary transforming commands are:

    • Chart
    • Timechart
    • Top
    • Rare
    • Stats

    The Post-process search is known and referred to as a base search. The base search should always avoid returning RAW events and instead return transformed results. This is largely due to one of the limitation of Post-process being it can only return a max of 500,000 events and it will truncate without warning. To circumvent this limitation, it is best practice to use one of the transforming commands and as always, refine your search as much as possible to reduce the number of results and reduce your search .

    The Documented Limitations of Post-Process Searches

    The documentation that is provided on Splunk Docs show a few limitations that you should consider before using the Post-process search:

    https://docs.splunk.com/Documentation/Splunk/6.2.5/Viz/Savedsearches#Post-process_searches
    • Chaining for multiple post-process searches is not currently supported for SimpleXML dashboards.
    • If the base search is a non-transforming search, the Splunk platform retains only the first 500,000 events returned. The post-process search does not process events in excess of this 500,000 event limit, silently ignoring them. This results in incomplete data for the post-process search. A transforming search as the base search helps avoid reaching the 500,000 event limitation.
    • If the post-processing operation takes too long, it can exceed Splunk Web client’s non-configurable timeout value of 30 seconds. This can result in a timeout due to an unresponsive splunkd daemon/service. This scenario typically happens when you use a non-transforming search as the base .

    Examples of the Basic Concepts

    Splunk Search with non-transforming commands returning RAW results:

    Splunk search bar with query filtering by sourcetype "pan:threat" and action "allowed".

    Splunk dashboard displaying multiple threat event logs with sourcetype pan:threat.

    Splunk Search with transforming command retuning transformed results:

    Splunk search bar showing a stats count query grouped by app, category, rule and other fields.

    Splunk query results in table format showing apps, categories, signatures and source IPs.

    Examples of Post-process

    There are many different ways to determine what should be the base search and what should be in each post-process search. One method is to create all of the queries for your dashboard first and then find the beginning commonality between the searches which will end up being your base search. Then the part that does not meet the commonality will then be the post-process searches. Keep in mind that if you have four Splunk queries and three have a commonality but the fourth is completely different, you can do the base search for the three common Splunk queries and the fourth will just run as a normal query.

    We will take the following 5 Splunk queries as our example for what we have determined to put into our new dashboard. If you just ran these in our dashboard it would run 5 almost identical queries taking up valuable search resources and user limits.

    sourcetype=”pan:threat” action=allowed | stats count by app
    sourcetype=”pan:threat” action=allowed | stats count by rule
    sourcetype=”pan:threat” action=allowed | stats count by category
    sourcetype=”pan:threat” action=allowed | stats count by signature
    sourcetype=”pan:threat” action=allowed | stats count, values(rule) as rule by dest_ip

    As we can easily see, the commonality of the 5 queries is going to be:

    sourcetype=”pan:threat” action=allowed |

    The issue with just taking that portion as your base search is that it will return RAW results. If we review the 5 queries, they are using 5 different fields which means our transforming base search should include all 5 fields.

    sourcetype=”pan:threat” action=allowed
    | stats count by app, category, rule, signature, dest_ip, src_ip

    If we continue our method of initially creating our dashboard with our 5 independent queries:

    Splunk Threat Dashboard with multiple panels showing app usage, rules, signatures, and destination IP data.

    Then we can switch to the XML source view of the dashboard and start making our base search and post-process searches. Below is how the dashboard’s XML looks before using any post-process searches.

    <

    <panel>

    <table>

    <title>Applications</title>

    <search>

    <query>sourcetype=”pan:threat” action=allowed | stats count by app</query>

    <earliest>-24h@h</earliest>

    <latest>now</latest>

    </search>

    <option name=”drilldown”>none</option>

    </table>

    </panel>

    <panel>

    <table>

    <title>Rule</title>

    <search>

    <query>sourcetype=”pan:threat” action=allowed | stats count by rule</query>

    <earliest>-24h@h</earliest>

    <latest>now</latest>

    </search>

    <option name=”drilldown”>none</option>

    </table>

    </panel>

    <panel>

    <table>

    <title>Catergory</title>

    <search>

    <query>sourcetype=”pan:threat” action=allowed | stats count by category</query>

    <earliest>-24h@h</earliest>

    <latest>now</latest>

    </search>

    <option name=”drilldown”>none</option>

    </table>

    </panel>

    </row>

    <row>

    <panel>

    <table>

    <title>Signature</title>

    <search>

    <query>sourcetype=”pan:threat” action=allowed | stats count by signature</query>

    <earliest>-24h@h</earliest>

    <latest>now</latest>

    </search>

    <option name=”drilldown”>none</option>

    </table>

    </panel>

    <panel>

    <table>

    <title>Rules by Destination IP</title>

    <search>

    <query>sourcetype=”pan:threat” action=allowed | stats count, values(rule) as rule by dest_ip</query>

    <earliest>-24h@h</earliest>

    <latest>now</latest>

    </search>

    <option name=”drilldown”>none</option>

    </table>

    </panel>

    </row>

    </dashboard>

    We will create our base search with the following:

    Base Searchsourcetype=”pan:threat” action=allowed
    | stats count by app, category, rule, signature, dest_ip, src_ip
    Post-process 1| stats sum(count) as count by app
    Post-process 2| stats sum(count) as count by rule
    Post-process 3| stats sum(count) as count by category
    Post-process 4| stats sum(count) as count by signature
    Post-process 5| stats sum(count) as count, values(rule) as rule by dest_ip

    Once in the XML Source view, create your base search at the top, under the label but before the first row:

    XML code snippet showing base search setup for a Splunk dashboard panel.

    The base search id can be named anything (in this case it is “baseSearch”) but it is best to make it something easy because you will need to use it throughout the dashboard. The base search id is referenced in each post-process search which appends the base search in front of each post-process search. To create the base search, the id is placed inside of the search tags at the top of the dashboard before all of the panels.
    <search id=”{id name}”>

    The id name must be in double quotes “” and the name is case sensitive. Next, the transforming base search query is added inside of the open and closed query tags
    <query> {insert query here} </query>

    After the query tags, any other supported tags can be used such as the timeframe tags including tokens created and assigned in the dashboard. Then close the search tag.
    </search>

    Next we will add the post-process searches to each of the panels on the dashboard. The time references should be removed since the base search controls the timeframe:

    XML code snippet for a Splunk panel titled "Applications" with a post-process search query.

    Similarly to the base search, the post-process search uses the base search id in the search tags.
    <search base=”{id name of base search}”>

    Next would be the query tags where the post-process search goes. This query should start with a pipe “|” because it will be appended to the base search like it was all one query.
    <query> “ {post-process search that start with a pipe “|” } </query>

    After the query tags, any other supported tags can be used except the timeframe tags since the post-process searches go off the timeframe of the base search. Then close the search tag.
    </search>

    After modifying all 5 of the post-process searches in the XML source, the dashboard will be ready to use the base search. If you run the dashboard and look at the current searches, there will only be 1 search compared to 5 searches. Below is how the dashboard’s XML looks after making the changes.

    <dashboard>

    <label>Threat Dashboard</label>

    <!– Base Search Called “baseSearch” (This can be named anything) –>

    <search id=”baseSearch”>

    <query>sourcetype=”pan:threat” action=allowed | stats count by app, category, rule, signature, dest_ip, src_ip</query>

    <earliest>-24h@h</earliest>

    <latest>now</latest>

    </search>

    <row>

    <panel>

    <table>

    <title>Applications</title>

    <!– post-process search 1 –>

    <search base=”baseSearch”>

    <query>| stats sum(count) as count by app</query>

    </search>

    <option name=”drilldown”>none</option>

    </table>

    </panel>

    <panel>

    <table>

    <title>Rule</title>

    <!– post-process search 2 –>

    <search base=”baseSearch”>

    <query>| stats sum(count) as count by rule</query>

    </search>

    <option name=”drilldown”>none</option>

    </table>

    </panel>

    <panel>

    <table>

    <title>Catergory</title>

    <!– post-process search 3 –>

    <search base=”baseSearch”>

    <query>| stats sum(count) as count by category</query>

    </search>

    <option name=”drilldown”>none</option>

    </table>

    </panel>

    </row>

    <row>

    <panel>

    <table>

    <title>Signature</title>

    <!– post-process search 4 –>

    <search base=”baseSearch”>

    <query>| stats sum(count) as count by signature</query>

    </search>

    <option name=”drilldown”>none</option>

    </table>

    </panel>

    <panel>

    <table>

    <title>Rules by Destination IP</title>

    <!– post-process search 5 –>

    <search base=”baseSearch”>

    <query>| stats sum(count) as count, values(rule) as rule by dest_ip</query>

    </search>

    <option name=”drilldown”>none</option>

    </table>

    </panel>

    </row>

    </dashboard>

    The use of post-process searches in dashboards might not always work if there are no common queries. In the situations where there is commonality, then post-process searches should be used. This is not only to reduce the work load that each query requires but it reduces the likeliness off users reaching their search limits especially if the dashboard has a large number of common panels.

    Want to learn more about optimizing Splunk dashboards? Contact us today!

    [pardot-form id=”16215″ title=”Blog – Josh Grissom – Optimizing Splunk Dashboards with Post-process Searches”]

  • Prepayments Feature Released for Inspyrus Invoice Automation

    Prepayments Feature Released for Inspyrus Invoice Automation

    Prepayments have been long time features of Oracle EBS and other ERP systems.  Prepayments allow advance payment to a supplier.  Later when the invoice is received from the supplier, the prepayment can be applied against that invoice.

    In the latest release of the Inspyrus Invoice Automation Solution, a prepayments feature has been added for Oracle EBS.

    The new prepayments tab in the UI has the ability to Add, Edit or Delete a Prepayment.   When adding a prepayment, simply click the Add button and a list of all available prepayments for the supplier is displayed.

    Oracle interface showing two available prepayment lines under the prepayments tab, with columns for amount, description, and prepayment number.

    The user can select a prepayment and edit how much of it should be applied to this particular invoice.

    Oracle prepayments screen interface with a value of 23 entered in the amount to apply field for the first prepayment line.

    This amount is then displayed in the Prepayments tab in Inspyrus.

    Oracle prepayments interface summary showing a single prepayment entry marked as applied, including amount and application date.

    The prepayment information is then sent to Oracle EBS when the invoice record is created and the prepayment applied.

    Contact TekStream for more information about the Inspyrus Invoice Automation Solution.

    [pardot-form id=”16109″ title=”Blog – Karla Broadrick – Prepayments Feature released for Inspyrus Invoice Automation”]

  • Change Management Models: Adopting Tech

    Change Management Models: Adopting Tech

    In the Technology Age we are constantly bombarded with new initiatives, new technology and the latest Shiny New Toy.  Generally our leaders set us on a course of technology adoption with minimal consideration or involvement from those individuals that must use this Shiny New Toy.  As a Technology Provider we find this consideration (or the lack of) a critical point for the success or failure of a given endeavor.  Management teams that support the use of a project or organization level Change Management strategy can dramatically improve system adoption, investment realization, employee satisfaction and performance.  In the sections below you will find multiple approaches that have been successfully adapted and used in technology engagements.  The specific model is not important, but using one may just be the key to consistent success.

    Navigating organizational change at a project level cannot be done in a vacuum.  It must consider and involve the full project team and any external influencers.  Consistently articulate and support the relationship between the project team and related business resources. Define the roles and responsibilities. Work deliberately to create a partnership with a singular goal in mind—delivering the intended results and outcomes of the project.

    There are a number of change management models that can be uses to successfully assess and implement a change. Each of these models include a number of activities or practices to follow in making organizational or technology changes.

    McKinsey 7-5 Framework

    The McKinsey 7-S Framework, developed by Thomas Peters and Robert Waterman is a popular approach.  It provides methods for assessing the current state of an organization, the future state and what needs to change.  It addresses seven key factors: shared values, strategy, structure, systems, style, staff and skills.  With a technology change this structure could be used to address impact on the business team based on its core values, skill sets, strategy, etc.  The objective is to look at the various aspects to gain an overall perspective of the change and its true value.

    Kotter’s Eight-Step Change Model

    A second type of change management model is Kotter’s Eight-Step Change Model, developed by Harvard Business School professor John P. Kotter.   This eight-step process is fairly simple and straight forward.  It focuses on acceptance and preparation for the change, rather than the specific change.  The idea here is to ease the transition into a new approach.

    ADKAR Model

    Last but not least is the The ADKAR model, created by Jeffory Hiatt (founder of Prosci).  The ADKAR model uses a bottom-up approach which focuses on the individuals that need to change.  It’s not a strict set of steps, but more a set of goals used to effectively plan for a change.  It focuses on the individuals’ needs rather than the technical aspects to achieve success.

    Change management at the project level is important for benefit realization and value applied to a particular initiative.  It is a structured approach to create logical strategies and processes to improve employee adoption and usage. It is a way to help achieve the intended benefits, realize ROI, mitigate cost, risk and create value.  It is an important tool that can make projects and initiatives are more successful.

    Take time to explore the various models and take what is valuable to you.  Stay flexible when following a model and adjust the approach to your team, rather than following it too rigidly. At a personal and organization level the way change is perceived and accommodated is unique based on your cultural norms.  There is no right or wrong approach, having one is the key.

    Feedback is always welcome.  We would love to hear how your organization approaches change management with technology projects.

    Have change management questions? Contact us today!

    [pardot-form id=”16003″ title=”Blog- Todd Packer – 3 Crucial Change Management Models to Help Your Company Adopt New Technology”]

  • Considerations for Moving From On-Prem to Cloud

    Considerations for Moving From On-Prem to Cloud

    Experts today are continually barraged with data about the cloud. It appears to be each different business is using cloud-based programming, leaving those as yet utilizing on-premise arrangements thinking about whether they, as well, should switch. Organizations are rushing to cloud arrangements on the grounds that there are numerous a large advantages than there are with on-prem arrangements. Here are some of the regularly said reasons cloud setups are better.

    COST EFFECTIVE

    Cloud arrangement suppliers by and large charge some kind of month to month expense.  This rate might be paid every year or month to month and can either be for each client cost or a cost that incorporates a set scope of records. In return for this charge, you’ll have the capacity to set up accounts until the point when you achieve the most extreme, overseeing secret word resets and record evacuations and augmentations utilizing an authoritative gateway.

    Rather than depending on CDs or a site download to introduce the product on every gadget, you’ll have programming that is prepared to utilize. Permitting charges are incorporated into the price tag, so your IT group will never again need to stay aware of your product licenses to ensure the greater part of your introduced programming has been obtained.

    TECHNICAL SKILLS

    With such huge numbers of private companies and new companies in the business world today, technical support is no longer a choice. A SMB for the most part can’t bear the cost of a full-time IT bolster individual, not to mention the high cost of a server chairman. This implies depending on neighborhood organizations to offer help on an as-required premise, which can accompany a heavy for every hour sticker price. Along these lines, the organizations that do have on-introduce programming will regularly depend on remote help, which is outsourced by means of the cloud.

    With cloud programming, technical support is generally taken care of by the supplier, regardless of whether by telephone, email, or an assistance work area ticket. These suppliers have the wage base to pay the high pay rates instructed by the present best IT experts, both at the server level and at the client bolster organize. Most smaller organizations essentially couldn’t manage the cost of this kind of skill all the time.

    SCALABILITY

    Each strategy for success to develop after some time and cloud programming offers the versatility required to deal with that development. At the point when another representative joins its staff, a business utilizing cloud programming can essentially add another client to its record administration. At the point when an organization maximizes its logins, a higher-level record can as a rule be requested with negligible exertion with respect to the business.

    Another advantage to cloud arrangements is that they for the most part include new highlights that normal on-premise setups do not include. As clients express an enthusiasm for having the capacity to accomplish more with their product, suppliers include these highlights, making them accessible either consequently or with a discretionary record change. Cloud arrangements are additionally consistently endeavoring to work with other programming applications and these combinations make it simpler for organizations to deal with everything in one place.

    AVAILABILITY

    The present workforce is progressively portable, telecommuting, inn rooms, coffeeshops, and air terminals. Cloud programming implies that these laborers can get to their documents wherever they are, utilizing a portable workstation, cell phone, or tablet. This implies even while in the midst of some recreation, groups can keep in contact, keeping ventures pushing ahead through the cloud.

    A standout amongst other things about cloud arrangements is that experts never again need to make sure to bring records with them when they leave the workplace. An introduction can be conveyed specifically from a client’s cell phone. Applications that handle charging, cost assessing, and venture administration can be gotten to amid gatherings, enabling participants to get the data they require without influencing everybody to hold up until the point when the meeting is finished and everybody has come back to their workplaces.

    RELIABILITY

    In the event that you’ve at any point endured a server blackout, you know how destructive it can be on an assortment of levels. Your representatives are compelled to either wait around, sitting tight for the circumstance to be settled, or go home for the day and leave your work environment unmanned. On the off chance that this happens over and over again, you’ll utilize customers and even workers, and in addition hurt your well-deserved notoriety as a business that has become a model of togetherness.

    Cloud suppliers look at unwavering quality as a vital piece of their plans of action. They make it their central goal to guarantee clients approach the records and applications they require constantly. In the event that a blackout ever happens, many cloud suppliers have worked in reinforcements to assume control, with clients never mindful an issue has occurred. On the off chance that such reinforcement doesn’t exist, a cloud supplier still approaches specialists who can guarantee frameworks are up considerably more rapidly than a SMB could with an on-preface server.

    SECURITY

    Security is a continuous worry for organizations, with reports of ruptures getting to be plainly typical. Cloud programming guarantees an abnormal state of security, including information encryption and solid secret word prerequisites. These little things will help protect a business’ information, lessening the danger of a rupture that could cost cash and mischief client confide in an organization.

    Organizations that store specific data, for example, medicinal records or financial balance data should scan for a cloud supplier that offers these insurances. There are presently cloud suppliers that have some expertise in HIPAA consistence, for example, so a medicinal practice could profit by the authorities on staff at one of those suppliers who can guarantee that wellbeing information stays safe.

    DISASTER RECOVERY

    What might happen to your business if a cataclysmic event struck your building or server farm? Imagine a scenario where you came in one morning to discover a fire had rendered your workplaces dreadful. Would you be compelled to close everything down for the term or would your representatives have the capacity to begin working promptly?

    Cloud programming enables catastrophe to verification your business, guaranteeing your representatives can telecommute or a brief office if for reasons unknown they can’t work in the workplace. Cloud suppliers typically have reinforcement anticipates their own servers to ensure against calamities, so the product and documents you utilize every day will be available regardless of whether an issue strikes one of their server farms. Before you pick a supplier, don’t hesitate to make inquiries about an organization’s catastrophe arrangements to ensure you’ll be effortless.

    Diagram of cloud computing benefits, showing terms like flexibility, disaster recovery, automatic updates, increased collaboration, and security pointing toward a white cloud icon.

    Thinking about moving from On-Prem to Cloud? Contact us today!

    [pardot-form id=”16001″ title=”Blog- Matt Chumley – Considerations for Moving From On-Prem to Cloud”]