Splunk is a very powerful tool that allows you to transform your data and parse it the way you want to in most cases. Using some basic Splunk functionality, you can route data to multiple destinations, may it be multiple indexes, indexers, or even other destinations. This can help you address different scenarios where you may want to have data from a single source go to multiple destinations.While there can be many use cases you can address with this, we will touch upon a few use-cases that I have come across during my years of work with Splunk.
•Route data to multiple destinations from a Splunk Universal/Heavy Forwarder using inputs.conf
•Route data to multiple destinations using props/transforms
Route Data to multiple destinations from Splunk UF/HF using inputs.conf
There can be multiple use-cases where you would want to use inputs.conf to route your data to multiple destinations. Some of the most common use-cases I’ve seen are
•Customers need to send data to other external tools outside of Splunk.
•Customers in a hybrid cloud/on-prem environment needed to send the same data to Splunk Cloud indexers and their Splunk on-prem (Enterprise) indexers
Before we dive deeper into this, if you are sending data externally outside of Splunk over Syslog, in Splunk you will need a Splunk Heavy Forwarder (HF). You can route data from multiple UFs to a single HF that can send data over Syslog to an external source.On the universal forwarder, you can set multiple output destinations using multiple target groups. These can include the following;
•TCP 9997 to Splunk servers
•TCP to non-Splunk servers using the “sendCookedData=false” setting
Splunk Heavy Forwarders can also send Syslog data to third-party systems over TCP and UDP protocols. If your third-party system accepts data over Syslog then you can route data from your UFs to HFs and further to the Syslog endpoint.
Routing data using inputs.conf on a Universal Forwarder
You can create multiple target groups in the outputs.conf
Universal Forwarder
##outputs.conf[tcpout]
defaultGroup = splunk-target-indexers[tcpout:splunk-target-indexers]
server = x.x.x.x:9997[tcpout:non-splunk-target-group]
server = x.x.x.x:port
sendCookedData = false[tcpout:splunk-heavy-forwarder]
server = x.x.x.x:9997
A universal forwarder will route data to the default group if you do not specify a different destination using the _TCP_ROUTING attribute for your input.
##inputs.conf# This will route to default group
[monitor:///var/log/abc.log]
index = os_nix
sourcetype = abc-log# This will route to splunk-target-indexers and non-splunk-target-group
[monitor:///var/log/def.log]
index = os_nix
sourcetype = def-log
_TCP_ROUTING = splunk-target-group,non-splunk-target-group
Routing and filtering data on the Heavy Forwarder
You can use the heavy forwarder to do advanced routing and filtering. You can send data out of Splunk using the Syslog server and also use props and transforms to route a subset of data to certain destinations.##outputs.conf[tcpout]
defaultGroup = splunk-target-group[tcpout:splunk-target-group]
server = x.x.x.x:9997[tcpout:non-splunk-target-group]
server = x.x.x.x:port
sendCookedData = false[syslog]
defaultGroup = syslogGroup[syslog:syslogGroup]
server = ipddress:port OR hostname:port
type = udp|tcp
Route data to Syslog
In the example, we will see how a subset of events are routed to Syslog##transforms.conf#Create a transform to route data
[send-to-syslog]
REGEX = . #This will capture all events, you can write a regex to capture specific events
DEST_KEY = _SYSLOG_ROUTING
FORMAT = syslogGroup##props.conf#Route data from a specific host to syslog
[host::somehost*]
TRANSFORMS-syslog_output = send_to_syslog#Route a specific sourcetype to syslog
[sourcetype::some-sourcetype]
TRANSFORMS-syslog_out = send_to_syslogSplunk transforms are very powerful and allow you to transform, filter and route your data in multiple ways. To learn more about what transforms can do, you can review the documentationhere.
If you have Splunk routing or data filtering questions, please contact Zubair and our Splunk developer team for more info:
Whether you want to get an app approved or create a new sourcetype in Splunk Cloud, the cloud vetting process can be an exhausting exercise in vetting involving you and the cloud ops team. This post will show you how to leverage the Splunk App Inspect API, as well as common pitfalls to avoid so that your app gets approved for installation.
From an on-prem Splunk instance access the Splunk GUI to create a new app on your instance. Set a name, folder name, set visibility to “No”, and the template to barebones.
Access the CLI of the machine you did this on through SSH or locally. Navigate into the directory where the template app was created; $SPLUNK_HOME/etc/apps.
This directory will be the template for creating the app. It is easier to start from this template as it will have the necessary default files and a structure to start from.
In this example we are looking to create a custom app that will modify a sourcetype in a Splunk Cloud deployment.
To figure out what props.conf changes need to be made for the sourcetype; Get the raw data you are trying to parse. Upload data through the “Add Data” section in Splunk. Select a source and drop in the data file. Now you can create a custom sourcetype.
Go to “Advanced” and enter the appropriate fields to correctly parse your sourcetype. These can be new settings for; time_prefix, max_timestamp_lookade, time_format, etc.
Save the setting and check if the parsing is working as you want it. Hit “preview” to see the necessarily props.conf settings.
Example of resulting props.conf stanza:
[new_sourcetype_dreamcrush] SHOULD_LINEMERGE=false LINE_BREAKER=</Interceptor>([rn]+) NO_BINARY_CHECK=true CHARSET=UTF-8 disabled=false TIME_FORMAT=%Y-%m-%d</ActionDate> TIME_PREFIX=<ActionDate> Go back to the machine with the app template directory.
If a props.conf needs to be created, create, and set it to the proper permissions for Splunk custom apps (700 for directories and 600 for files). Append the setting you created to the $SPLUNK_HOME/etc/apps/appname/props.conf of your app.
Commands cd $SPLUNK_HOME/etc/apps/appname/ touch props.conf chmod 600 props.conf vi props.conf
If this is a one-time custom app, such for creating a sourcetype, add the following stanza to the $SPLUNK_HOME/etc/apps/appname/app.conf.
[package]
check_for_updates = 0
Next, there should only be a default directory in the custom app. If you are modifying an app through the GUI however, it will create files in the local directory. Make sure you move the necessary files and merge the configs in the default directory. NOTE: You should also remove the bin directory, which would be where you place scripts, if it is not needed.
Commands cd $SPLUNK_HOME/etc/apps/appname/ rm -rf local rm -rf bin
As bare minimums, you only need the default and metadata directories. Make sure the parent app directory has “execute” permissions.
The following commands will set all the files’ permissions to 600 and all directories’ permissions to 700 – the standard for Splunk custom apps. Run this inside the root folder of your app ($SPLUNK_HOME/etc/apps/appname/). You can replace “/path/to/base/dir” with a period “.” to get every file/directory in and under the working directory.
Commands find /path/to/base/dir -type d -exec chmod 700 {} + find /path/to/base/dir -type f -exec chmod 600 {} +
You can then compress the directory into an archive using a command such as tar. This is packaging the app.
NOTE: On a MacOS machine, there are temporary files created that will be denied by the cloud vetting process. To avoid this, a variable to not copy the temporary files (dot_underscore) must be set followed by the appropriate flag in the tar command.
Commands export COPYFILE_DISABLE=1 tar –exclude=”.*” -czvf test_template.tar test_template
Under your workspaces on the left you will see the AppInspect – Production collection.
You can then run the Authenticate script supplying your Splunk login and password to get an authorization token.
Depending on the type of validation you need, you can then use one of the “script” POST scripts to submit your app tar by selecting the app_package KEY.
You can then use the “status” GET script to generate the results of the validation based on the app you submitted. Finally, you will use the “report” GET scripts to grab the report results in either HTML or JSON format. This report will tell you if your app would pass the vetting process if you were to submit it through Splunk Customer as an app install, for example. Issues that will block the app are listed as failures and issues that should be fixed put wouldn’t cause a block are listed as warnings.
If you followed the steps in this article. You will see that there are no failures, and this custom app would pass the cloud vetting.
There is, however, 1 warning;
check_kos_are_accessible
• The ‘admin’ role is not available to Splunk Cloud customers. Please consider also including the ‘sc_admin’ role if you want Splunk Cloud customer administrators to be able to access this knowledge object File: default.meta Line Number: 5
To change all the occurences of “admin” to “sc_admin” in the default.meta file use the following commands.
Commands cd $SPLUNK_HOME/metadata vi default.meta :%s/admin/sc_admin :wq
After making this change, if you compress the file and resubmit it through the Splunk AppInspect checks, it will have no failures/warnings.
This custom app can then be submitted to be implemented in your Splunk Cloud environment without any issues!
• Splunk App packages must contain a `default/app.conf file`. No `default/app.conf` was found in `[redacted]`.
An app.conf file must be created. Using a template from a barebones app from Splunk will do this but if one already exists in your local directory;
Commands cd $splunkhome/etc/apps/appname/local mv app.conf ../default/app.conf
2. check_that_local_does_not_exist
• A 'local' directory exists in the app.
You need to move all the files from local into default. You can either merge the two if both are populated or remove the default directory and rename the local one.
Commands rm -r default mv local default
3. check_for_bin_files
• This file has execute permissions for owners, groups, or others. File: local/data/ui/views/[redacted].xml
You need to change all fields to have 600 permissions and all directories to have 700 permissions.
Commands find /path/to/base/dir -type d -exec chmod 700 {} + find /path/to/base/dir -type f -exec chmod 600 {} +
4.
check_simplexml_standards_version
• Change the version attribute in the root node of your Simple XML dashboard local/data/ui/views/[redacted].xml to `<version=1.1>`. Earlier dashboard versions introduce security vulnerabilities into your apps and are not permitted in Splunk Cloud File: local/data/ui/views/[redacted].xml
In all your dashboards, the Splunk standard is to have it with <dashboard> or <form>.
Example Old: <?xml encoding=”UTF-8″?><version=”1.1″><form theme=”light”>
New: <form theme=”light” version=”1.1″>
5. check_for_sched_saved_searches_earliest_time
The saved search [redacted] doesn't contain dispatch.earliest_time.It is prohibited to specify scheduled searches that don't specify a dispatch.earliest_time in Splunk Cloud. File: default/savedsearches.conf Line Number: 165
All saved searches must have an earliest time. If a search is set to All-Time in the GUI. It will normally have a latest_time of “now()” and no earliest_time defined. You can fix this by going to the $SPLUNK_HOME/etc/apps/appname/default/savedsearches.conf and adding “dispatch.earliest_time = 1” under the appropriate search stanzas. This will set the start time at the start of unix time.
6. check_for_valid_package_id
• The app.conf [package] stanza's has an invalide 'id' property: [redacted]. For the `id` property, it must contain only letters, numbers, `.` (dot), and `_` (underscore) characters, and can not endwith a dot character. Besides, some reserved names are prohibited. See https://docs.splunk.com/Documentation/Splunk/7.3.1/Admin/Appconf for details. File: default/app.conf Line Number: 6
check_that_directory_name_matches_package_id
• The `app.conf` [package] stanza has an `id` property that does not match the uncompressed directory's name. `app.conf` [package] id: [redacted] uncompressed directory name: [redacted]. File: default/app.conf Line Number: 6
In the $SPLUNK_HOME/etc/apps/appname/default/app.conf there is an id property under the [package] stanza. This has to exactly match the filename of the UNCOMPRESSED app package. It can also only contain letters, numbers, dot and underscore.
Example Old: [package] id = Test® Template™ BETA New: [package] id = TestTemplate You would also have to rename the directory to match the id;
Commands mv TestTemplateBETA TestTemplate
7. check_for_local_meta
• Do not supply a local.meta file- put all settings in default.meta. File: metadata/local.meta
There should be no local.meta file. If there is one and it is populated, you should merge the local.meta into the default.meta. Make sure that you aren’t making changes to the app while you are packaging it, or a new local.meta file will be created.
In stanza [redact]_initial_index, property coldPath should be $SPLUNK_DB/somedata_index/colddb, but is $SPLUNK_DBsomedata_indexcolddb here. File: default/indexes.conf Line Number: 3
Illegal property maxTotalDataSizeMB found in stanza somedata_index. Only properties [homePath, coldPath, thawedPath, frozenTimePeriodInSecs, disabled, datatype, repFactor] are allowed in default/indexes.conf. File: default/indexes.conf Line Number: 15
The file indexes.conf must have certain properties and must be written with forward slashes (/).
The saved search [redacted] doesn't contain dispatch.latest_time.It is better to add a dispatch.latest_time when specifying scheduled searches in Splunk Cloud. File: default/savedsearches.conf Line Number: 165
All saved searches should have a latest time. If a search is set to All-Time in the GUI. You can fix this by going to the $SPLUNK_HOME/etc/apps/appname/default/savedsearches.conf and adding “dispatch.latest_time = now()” (or whatever appropriate time frame) under the appropriate search stanzas.
10. check_kos_are_accessible
In Splunk Cloud, customers have access to the sc_admin role instead of the admin role. Your customers will not be able to access knowledge objects where the only assigned role is admin. Please consider also including the sc_admin role for compatibility with Splunk Cloud. File: local.meta Line Number: 342
To fix this you must go into the appropriate file (default.meta in this case) and replace all instances of “admin” to “sc_admin” for the Splunk Cloud users.
Commands cd $SPLUNK_HOME/etc/apps/appname/medata vi default.meta :%s/admin/sc_admin :wq
A prohibited file or directory was found in the extracted Splunk App: default/data/ui/views/._[redacted].xml
NOTE: On a MacOS machine, there are temporary files created that will be denied by the cloud vetting process. To avoid this, a variable to not copy the temporary files (dot_underscore) must be set followed by the appropriate flag in the tar command.
Commands export COPYFILE_DISABLE=1 tar –exclude=”.*” -czvf appname.tar appname
Learn how TekStream can guide you through the complexities of business and digital transformation by getting in touch with us today.
AWS is currently offering a range of funding programs to incentivize companies of almost any size or phase to shift workloads to AWS. Their goal is to help businesses accelerate their adoption of AWS while enabling them to focus on innovation instead of trying to cover infrastructure and implementation costs. That’s right: AWS will provide funding for your company and will cover a significant portion of the cost to plan and migrate your workloads. And these totals could reach hundreds of thousands – or even millions – of dollars over multi-year migrations.Shockingly, many qualifying companies aren’t leveraging these programs. My guess is that they don’t know they exist, or they don’t know how to navigate the application processes. Here’s an overview of the program highlights as well as some tips on how to get started.
Will AWS Really Pay Me to Move to AWS?
Yes, really! Here’s how it works: Through the AWS Funding Programs, qualified AWS migration plans are eligible to receive funds or credits to cover a portion of their project costs. The exact amount of cash or credits received is dependent on the specifics of each project and AWS’s projected annual recurring revenue (ARR) within the first 12 months of each project’s completion. One of the most extensive AWS funding programs is the AWS Migration Acceleration Program (MAP). It offers funding for cloud migration and modernization projects intended to reduce costs and break down the complexities of enterprise migrations. In addition to MAP, AWS offers funding to cover new proof-of-concept projects and repeatable ISV Workload Migration Program (WMP) Projects.
Why Aren’t More Businesses Using These Funds?
It may be because they aren’t aware of the opportunity.The AWS Funding Program was built to reduce the risk and financial burden of AWS migration and modernization efforts, while building confidence in the AWS platform. Understanding this mindset makes it a clear no-brainer for any company considering a migration to AWS.
Do the AWS Funding Programs Cover Every Project?
AWS Funding programs provide businesses and organizations access to tools and resources to successfully move to an AWS cloud environment. AWS Funding is available for:
• Migration Acceleration Programs
• Proof-of-Concept Initiatives
• ISV Workload Migration Programs for Microsoft, Oracle, and Splunk Migrations
Essentially, you want to develop a proof of concept to prove in an AWS migration, or if you’re ready to embrace AWS and ways to budget your transition costs, then you should be tapping into these funds. There is no reason to shoulder 100% of the costs on your own.
How Do You Get Started?
First, you need to have a project that meets AWS’s specific funding requirements. You’ll also need to complete the work with a certified AWS Partner, like TekStream. Not only will TekStream help you scope and execute your project to align with project funding requirements, but we also provide post-migration support to ensure a seamless AWS migration. Don’t leave your money on the table.
If you are ready to learn more about how to gain maximum AWS funding for your workload migrations, give TekStream a call at Call us at 844-TEK-STRM to discuss your specific needs and determine if you qualify for AWS funding support.
Authentication tokens in Splunk allow you to access Splunk via the REST interface, usually serviced on port 8089 on a search head, without needing to pass a username/password combinations in the call. The type of tokens Splunk employs are JSON web tokens.
To utilize an authentication token to access Splunk via API, you would use a curl command something like the following:
To set up and administer tokens, go to Settings > Tokens (under “Users and Authentication”). To administer tokens, you need to have the “edit_all_tokens” capability.
Here is what you can do with the tokens in Splunk in terms of reporting and alerting:
For reporting, here’s an example SPL to get you started. NOTE: All of these searches and alerts should be run from the Monitoring Console app on your Monitoring Console instance so that all search heads can be queried and reported on at once. However, they could be run from any search head by changing “splunk_server_group=dmc_group_search_head” to “splunk_server=local”:
| rest splunk_server_group=dmc_group_search_head /services/ authorization/tokens| convert ctime(claims.exp), ctime(claims.iat), ctime(claims.nbr)| rename claims.aud as audience, claims.exp as expiration_date, claims.iat as issued_at_date, claims.idp as identity_provider, claims.iss as issuer, claims.nbr as not_before_date, claims.roles as roles, claims.sub as user, headers.alg as algorithm, headers.kid as kid, headers.ttyp as token_type, headers.ver as version, lastUsed as last_used_date, lastUsedIp as last_used_from_ip_address, title as token
| eval last_used_date=if(last_used_date=0,"not yet used",strftime(last_used_date,"%m/%d/%Y %H:%M:%S")), last_used_from_ip_address=if(last_used_from_ip_address=""," not yet used",last_used_from_ip_address)
| table token status user roles audience issued_at_date not_before_date expiration_date last_used_date
last_used_from_ip_address issuer issued_at_date identity_provider splunk_server
You can also find token-related setup information at:
An example alert you could use for expiring tokens, say those that are going to expire in the next 30 days:
| rest splunk_server_group=dmc_group_search_head /services/ authorization/tokens
| where ‘claims.exp’ < relative_time(now(),”+30d”)
Additionally, with the “not before date” (claims.nbr) entry, it would be possible to set up multiple future-date, even overlapping, tokens for the same user. So, for example, you could set up two tokens for an API user today–one starting today for the next 90 days and one that started on day 89 and extended 182 days. This would give you two tokens spanning six months that had a two-day overlap period. Now, set an alarm on your calendar on days 89 and 90 to, on one of those days, go into the source system using the token to send API calls to Splunk and swap out the old token for the new one. You’d have two days to get the swap out made and potentially no loss of service.
If you would like additional support with your authentication tokens in Splunk or any other Splunk issue please contact us right away.
Splunk recently released its 2nd annual State of Observability Report based on surveys from 1250 observability practitioners, managers, and experts across various industries. It measures their success with observability as the organizations accelerate the transition of workloads to the cloud, public cloud, and multi-cloud environments while also shifting more applications to a cloud-native architecture.
It’s clear from the report that observability is becoming a business imperative as organizations embrace cloud-centric environments. It’s also evident that the more mature a company’s observability platform, the greater the ROI and bottom-line impact observability can make in the organization.
Specific findings:
● Companies with robust observability platforms are 2.1x likely to detect problems in internally developed applications in minutes.
● Leaders in observability adoption report a 69% improvement in resolution means time for performance degradation or unplanned downtime.
● Organizations with a mature observability platform achieve an average annual cost of downtime of $2.5 million – compared to $23.8 million for beginner observability platforms and even more-so for companies without any observability platform.
There is a growing recognition that to achieve observability maturity; observability must be built into the DNA of the organization. An increased focus on automation and collaboration are also critical to scaling and maturing observability efforts.
Four Focus Areas for Achieving Observability Maturity
As a Splunk MSP and Splunk 2021 Partner of the Year, TekStream has had a front-row seat in working with clients at all levels of observability maturity, and our experience echoes many of the issues covered in the report.
Here are four criticalareas for organizations looking to apply observability to improve their operational efficiency and reduce service-affecting downtime and security vulnerabilities:
1. Monitor Microservice-Based Architecture
According to the 2021 State of Observability Report, cloud-native applications are significant and expected to grow, with 34% of internally developed applications using containers and microservices-based architecture in a cloud-native environment.
There are many moving parts in a microservices-based architecture, and it can be challenging to get visibility into each. Companies with mature observability protocols know that Splunk can help them monitor each service and the interactions between those services.
Observability provides granular insight into the health of microservices performance and relationships, in real-time, through the open-source open telemetry collector for gathering metrics and traces.
Even better, as the system is built with cloud-native and microservices architectures, Splunk Observability comes with hundreds of integrations and pre-built visualizations.
2. Ensure True End-to-End Visibility
Splunk Observability tools provide visibility into an application’s health, uptime, and user experience, from infrastructure to front-end performance. This level of visibility allows you to see precisely how the health of one component of an application affects the application’s performance.
Here again, we see organizations that have invested in maturing their observability skill set achieve greater levels of visibility compared with organizations that are starting on their observational journey – although even self-proclaimed beginners in observability can achieve better visibility than those companies with no observability platform.
The report found that 66% of leaders stated their visibility into application performance is excellent. 64% of this same group reported visibility into their security position was excellent. When asked these same questions, only 44% of observability beginners claimed excellent visibility into their application performance, while 42% of beginners stated they had excellent visibility into their security practices.
3. Gain Confidence with More Reliable and Faster Development
The report found that year over year, confidence in using Splunk Observability for reliable and faster development rose for all levels.
However, only 35% of Spunk Observability users stated they were completely confident that they could meet application performance and availability requirements, whereas 71% of Splunk Observability leaders could confirm confidence across the same areas.
There are a few key areas where Splunk Observability can help organizations gain confidence in their development process:
● Application performance monitoring (APM),
● Distributed tracing
● Log management
● Anomaly Detection
4. Use Splunk Observability Under the Guidance and Support of Your MSP
Splunk Observability maturation doesn’t happen by accident. It takes careful planning, leadership buy-in, capital investment, and a roadmap to success. It also takes time.
This is where a trusted MSP can provide significant value.
Finding the right partner can help your organization reach maturity quicker, more efficiently, and at a reduced cost. We developed our QuickStream process for Splunk Observability Cloud to begin delivering value in 2-3 weeks. Not months.
Together, we can help you reap the benefits and improved ROI that can come from a mature Splunk Observability implementation:
● Global Monitoring of Amazon Container Services
● Real-time Fidelity Tracing
● Automated Incident Response
The Future State of Observability
The future state of observability is likely to be more data-driven and automated. The proliferation of the cloud and the continued pressure to bring ideas to market quicker will drive the need for organizations to invest in maturing their observability platform. And as systems become more complex, observability will become even more essential. If you’re not already using observability to monitor your system, now is the time to start.
Whether your organization is new to the concept of observability, or your team is well-seasoned with the Splunk Observability Platform, TekStream can help. We have deep experience helping to guide our clients through their observability maturation journey – regardless of their starting point.
To learn more about our Splunk Observability capabilities, contact us today.
By default, ITSI allows you to perform several actions around episodes created from notable events. Under the Action Rules tab in our ITSI Aggregation Policy, we can see a list of these default actions. This blog will walk through where these actions are configured, and how to add additional alert actions to this list.
For Splunk Enterprise, command line access will be required
For Splunk Cloud, a support ticket will be needed to make the following config changes.
These alert actions can be found under the SA-ITOA app on the ITSI Search Heads. We can view the default action configs by navigating to splunk/etc/apps/SA-ITOA/default and viewing notable_event_actions.conf. Here we see a stanza for each of the default actions available. For any additional actions, we simply need to add a stanza to this configuration and enable it.
As a prerequisite, for any alert action that you wish to add to your aggregation policies, the alert action must exist on the ITSI Search Head. Whether from a custom-built action, or a supporting Splunk add-on. In this example, we’ll be adding a Slack alert action to the aggregation policy, so the “Slack Notification Alert” app is installed on our search head.
First, we’ll need to get the name of the alert action by checking alert_actions.conf. For our slack example, we’ll navigate to the Slack Notification Alert app, which can be found under splunk/etc/apps/slack_alerts. In the default directory, there is a conf file named “alert_actions.conf” that contains the name of the alert action as the stanza name, and the configuration settings below. We’ll grab the stanza name to use in ITSI. For this example, the stanza name is “[slack]”.
Note that all backend changes to configs should be made under the local directory, never default, so we’ll want to make this change in splunk/etc/apps/SA-ITOA/local/notable_event_actions.conf. You may need to create the local directory and notable_event_actions.conf if it does not already exist in this app.
Once created, we will make a stanza for the alert action. I want to add a Slack alert action, so in splunk/etc/apps/SA-ITOA/local/notable_event_actions.conf I will add the following stanza and save the file.
[slack]
disabled = 0
This change will require a restart of Splunk. After restart, visiting the Action Rules tab now shows the Slack action as an option.
Clicking “Configure” will show the configuration options of the alert. In this case, defining what Slack channel we want to send to, and what the messaging should be. Global settings, such as the name of the Slack Webhook URL, can be defined within the add-on itself, but overwritten of ITSI if needed.
Recently on a project, I had an issue where I was using an Oracle Webcenter Graphical user interface installer by running an installer command on a Linux host using MobaXterm from my Windows OS. Almost every time I launched the installer, it generated an X11 window in MobaXterm that was so small I couldn’t see the entire screen. To make matters worse, the installer didn’t have scroll bars in place to navigate around to click on critical buttons like ‘Next’ or ‘OK’. The activity was supposed to be a simple one but was making too much of my time unproductive. The issue also wasn’t consistent. Infrequently after multiple attempts, it would magically work without explanation.
After endless hours of googling and trying to change several X11 session variables and not finding results or resolution, I stumbled across an option that consistently rendered the installer window properly.
It’s a simple fix, but for me, it was a hard one to find. The fix was to move the x11 session to its own single container window.
To find this option I navigated to Settings -> Configuration.
Here in the X11 tab, you will see this drop down option highlighted below. Select “Windowed mode”: X11 server constrained to a single container window
Now when MobaXterm starts you will see a separate display dedicated to the X11 window in MobaXterm:
Are you looking to introduce security use cases to your Splunk Cloud deployment? If so, there’s a free app that is your entry to continuous monitoring and security investigations. The InfoSec App on Splunk is an entry level security solution powered by the Splunk platform that is designed to address the most common security use cases. You can also leverage the InfoSec app for a variety of advanced threat detection use cases and expand them using other security apps and add-ons that you can download from Splunkbase.
The following free Add-ons must be installed before you can start using InfoSec App on Splunk:
• Sankey Diagram visualization: https://splunkbase.splunk.com/app/3112/(a new optional prerequisite for the experimental VPN Access dashboard starting from v1.5.3)
How to install apps & add-ons for the InfoSec App on Splunk Cloud
From your home screen you can download and install apps & add-ons by selecting the gear icon on the left side of the screen above your list of apps.
You can access public apps from Splunkbase by selecting the Browse more apps option on the following screen.
Find your app or add-on, then click Install
Enter your Splunk.com login credentials and select the checkbox to accept the app license terms
Select Login and Install a. The app/add-on is downloaded from Splunkbase and installed on your deployment.
Note. You can install most Splunk apps on Splunk Cloud in a self-service manner without assistance from Splunk support except for customers that are on a Classic Cloud Experience designation. To determine your Splunk Cloud platform Experience select Support & Services > About located on the top right hand corner of your Splunk Cloud Web. In the About panel, under Splunk Cloud you will find your experience (Classic or Victoria).
Data Requirements & Prerequisites
The following Data Models must contain data and be accelerated (examples included):
Active Directory Data from the Windows Logs on Domain Controllers or O365
Linux Auth Logs
Cloud (AWS, Azure, or GCP) Authentication Data
Okta
Duo
Cisco ISE
• Change
Windows Event Logging
S3 Audit Logs
ServiceNow
Puppet
• Intrusion Detection
Palo Alto Networks
Cisco FirePOWER
Check Point
• Malware
Crowdstrike
Symantec
McAfee
Trend Micro
Sophos
• Network_Sessions
Zscaler
Palo Alto Networks
Cisco ASA
AWS VPC Flow
Cisco iOS
Juniper
Netflow
• Network_Traffic
Palo Alto
Zscaler
SolarWinds
• Endpoint
Crowdstrike Falcon Insight
Microsoft Endpoint Manager
Cisco Anyconnect
• Web
IIS
Fortinet
WebSense
Apache
All data used by InfoSec app must be Common Information Model (CIM)- compliant. The easiest way to accomplish this is by using CIM-compliant data and the appropriate add-ons that will normalize and tag your data appropriately. There are custom solutions that require tagging and event types when your data is not being mapped to the data models but that will not be covered in this guide.
This concludes part 1 of Installing and Configuring InfoSec app on Splunk Cloud. Part 2 will be released soon and will contain additional information about leveraging the app and the dashboards, reports, and alerts available. It will also include basic troubleshooting tips and best practices when utilizing the app.
Want to learn more about introducing security use cases to your Splunk Cloud deployment? Contact us today!
Role-Based Access Control, or RBAC, is the paradigm for restricting access to authorized users in Splunk. These practices are commonly used to limit what data is visible to end users, depending on their role in an organization. Within Splunk, an admin has precise control over what privileges a user has, from searching data from particular indexes, to what alert actions they can create and also to what knowledge objects they can edit as well as many other Splunk behaviors. With search filters, you can get even more granular with what information a user can see. These are custom searches that get processed before each user’s search query that “filter” which results a certain user can see. While this method can be useful for giving access to specific data within an index, it is not the most efficient way to segregate data. Furthermore, it is not recommended as the best way to control who sees what in any Splunk deployment. Here we’ll explore why restricting access using the search filter generator doesn’t always work as we’d expect.
User Privileges in the Splunk Web UI (Enterprise or Cloud)
Before diving into the search filter mechanics, let’s look at its context in defining user privileges. There are 5 categories within the web UI that determine a users’ privileges: inheritance, capabilities, indexes, restrictions, and resources. These can be found by navigating to Settings>Roles and clicking on a role name.
1. Inheritance
a. Where a new role type can be given the same capabilities of another. Here you can select from previously created roles and “inherit” their capabilities for a new role.
2. Capabilities
a. Where an admin can select what specific capabilities a role has, like edit_https or run_debug_commands to name a few. This affords very granular control over what a certain user can do within Splunk.
3. Indexes
a. Defines what indexes are searchable to a user. Restricting access on an index basis is a best practice in Splunk and should be the primary way to implement RBAC. Here and admin can also set what indexes a user can search by default when one is not explicitly defined in a search.
4. Restrictions
a. This is where the search filter lives. Here, there are two options for creating a search filter: by using the search filter generator, or by typing directly into the search filter. We will explore these functions in more detail later.
5. Resources
a. Here, an admin can set resources usage limitations for a role. This can include only allowing searches within a certain app, restricting the number of search jobs a role can run at the same time, even the amount of disk space a search job can use.
Now that we have some context, lets dive into the search filter behavior, and why it doesn’t always work as expected. Here we can see the search filter as it appears in Splunk:
On the left of the screen, we see the search filter generator. As the name suggests, this tool pulls indexed fields and there values and creates a filter that get appended to any search run by a user assigned to the role. At the top, there is a drop down option that controls how long Splunk will spend looking for a certain field or value. By default, the search filter is populated with a wildcard. We can preview what information this role can see by clicking “Preview search filter results”:
By default, users can see all fields and indexes visible to them as defined by their role. Next, let’s try and filter events a little further by excluding results where sourcetype=splunkd. We’ll start by deleting the wildcard “*” in the search filter.
In this example, we type “sourcetype” into the Indexed fields box, then “splunkd” into the “Values” box. Concatenation is greyed out here because the search filter is currently empty. Clicking “Add to search filter” adds our newly created filter as (sourcetype::splunkd). But how can we know if the filter we created works as expected?
We can preview what information this role can see by clicking Preview search filter results.
As expected, only events with a source type of splunkd are returned. To exclude events with the same settings, add NOT to the beginning of the filter.
There are some drawbacks to using an SPL filter this way. The results that come back to a user can depend on multiple factors and aren’t always what you’d expect. Here are a few caveats to keep in mind when using the search filter, and why it should generally be avoided:
1. Using the search filter generator alone can create inefficient SPLs
a. Let’s take another look at the example above. If we wanted to exclude splunkd events from a specific source using the search filter generator, we would append the previous filter using the same method as before:
The results come back as expected, however using multiple NOT statements in this manner is inefficient and could cause serious performance issues.
2. Roles can inherit index restrictions and capabilities from other roles, but not their search filters
a. For example, lets say our standard power user role had some search restrictions assigned to it. If we wanted to create another power user role that inherited power user privileges and some additional capabilities (but maintain the search filter), we would need to copy the search filter and apply it to the new role.
3. Certain configurations in authorize.conf can alter how a search filter behaves
a. Within authorize.conf, there is a parameter called “srchFilterSelecting” that controls how the search filter behaves. It is set to true by default at a global level, which means that search filters select the results the user sees. If set to false, it eliminates the results. This can cause confusion even in a simple environment, especially if different apps assume one setting or another.
b. In the examples above, we executed our search filters with the default setting of srchFilterSelecting=true. If we set it to false, all of our filters would behave the opposite of what is expected. So even though we successfully excluded certain events using a NOT statement, Splunk would now interpret the opposite of this statement and only include the results of our search filter.
4. The search filter only works on indexed fields
a. Any fields that are extracted at search time will not be effective in the search filter, even if they are entered manually. This limits the flexibility of the search filter, and presents an issues with no clear workaround. We could move some search-time extractions to index-time however this is not feasible in the long term, as having too many index-time field extractions can negatively impact indexer performance.
There are better solutions when it comes to creating scalable role-based access controls in Splunk. The following documents outline when and how to implement these restrictions in detail and includes some common use cases for handling sensitive data in Splunk.
Oracle Content Management Cloud allows for text fields to be a select list of options but does not allow dynamic population from an external source without customization. Outlined below are two customization methods available, and the benefits and tips for using each when customizing content type fields.
Custom Field Editors
Within Content Management Component Development tools is an option to “Create Content Field Editor”. When creating the component, the data type and handle multiple values fields are required, however the resulting component is not altered by those selections. Those selections drive where this component will be available. Without any customization, is not ready for use.
The component is created with an “assets” folder containing two files; view.html and edit.html. Modifications are needed for edit.html, typically view.html can stay as the default. Without modifications to edit.html the text field is replaced with a simple input field and JavaScript functions save the data to and recall data from the asset as the field is changed.
To create the select list with options supplied from an external source, we need to update the html and associated CSS to match the system fields, then add a JavaScript function to call and create the options for that select list.
Onload the getCountries function will be called, and the drop down will populate from the results. Additional html tags and functions can be configured for validation prior to saving the selected value to the asset.
Benefits of using Form Editors:
Multiple fields can be created within a single editor. System or other custom fields can be accessed, and their values used within JavaScript functions. When modifications are made to the content type definition, the custom editor does not require changes unless the field, or its custom functionality is impacted directly by the change.
Tips when using Form Editors:
Any custom development in a cloud environment needs to be validated after upgrades and patches to make sure recent changes to the environment do not negatively impact the custom developed field editors. It’s also important to validate the field values properly to avoid frustrating errors that only display after save has been requested causing lost work.
Custom Form Editors
Unlike the custom field editors, Custom Form Editors replace the system form entirely. This allows the content saved to the asset to be structured entirely differently than how the entry form collects it. For example, the screenshots below show a “Product” content type with multiple fields describing the product, but a single search and drop-down selection field is presented on the creation page.
On change that selection provides values for all the asset fields, including Name, Description, and properties such as language and slug. Those values would never have to be displayed but could be populated and displayed upon creation.
Benefits of using Content Form Editors:
The form fields, functionality, layout, even styles are all editable using this component type. Libraries can be referenced to include 3rd party functions. Multiple system functions allow for use of Content Pickers, and Media Pickers.
Tips for using Content Form Editors:
At the time this is being written, system supported calendar functionality for date fields is not available, so additional date picker functionality will need to be implemented. This custom form editor should be developed with a function that creates the default type fields dynamically from the content type definition; otherwise, any change to the content type fields will require modifications to the custom form. A custom form can easily become a bottle neck for content type changes if not designed with this in mind.
As you can see, Oracle Content Management Cloud has flexible robust standard forms that allow for a range of options to expand the tools capabilities by customizing content type fields.
Contact Us for more tips and tricks for developing custom Content Contribution Forms!