Creating a custom search command to format product names

Sometimes, you just need that extra bit of logic or custom processing of data that might be unique to your line of business. You might also simply be in a position where you have picky executives who like to see their data formatted in a very specific manner.

In this recipe, you will learn how to use Splunk's Python SDK to create a custom search command that you can use to apply consistent formatting to product names, or any other string field, by capitalizing the first letter of each word in the string.

Get Splunk Operational Intelligence Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.