Hey there community and welcome to the 41st installment of Smart AnSwerS.
There have been a lot of questions on Answers throughout the years asking for a way to add comments to searches such as this 3 year old post with almost 16,000 views. The Answer by steveyz just below the accepted one is the latest development that many of you will be happy to learn about if you haven’t already seen it on this page. Splunk technical writer lstewart updated the documentation to share and publicize this solution: configuring and using a search macro to add comments to search strings with no performance or resource impact. *applause!*
Check out this week’s featured Splunk Answers posts:
Why is counting in tstats so much faster than stats?
This question from a212830 is almost a year old, but still a very interesting topic that I’ve seen get many users thinking, especially those who have just been introduced to tstats and are surprised by the improved performance of searches over using stats. skawasaki lays out a great answer, explaining how tstats works by making use of metadata and index-time fields as opposed to raw data. He demonstrates an example where tstats does not work, but also shares different options to work around this, referencing all the relevant pages in Splunk documentation for the community to learn more.
https://answers.splunk.com/answers/186938/why-is-counting-in-tstats-so-much-faster-than-stat.html
Accuracy of the metadata command in large environments?
The metadata command has helped many users with constructing efficient searches to return metrics on hosts, sources, and sourcetypes from certain indexes or search peers in Splunk deployments. lguinn asked this question to the community because she had some uncertainties with the accuracy of data returned in large environments, especially with some statements referenced from search documentation. She wanted to fully understand how the metadata command operates to clarify or debunk her doubts. Take a deep dive into this post for a great read by Answers from SplunkTrust powerhouses Runals, somesoni2, and martin_mueller as they share their experience, observations, and other clueful insights. lguinn is still hunting for more knowledge, so take a stab if you know something that’s not already mentioned!
https://answers.splunk.com/answers/294791/accuracy-of-metadata-command-in-large-environments.html
How to update Splunk after JavaScript changes without restarting Splunk?
mmensch posted a question I’ve seen asked a handful of times by other users on Answers, and I’d seen most of them tackled by SplunkTrust member alacercogitatus with the same solution. It was about time this useful tip got some spotlight! mmensch needed a way to update UI JavaScipt changes without having to restart Splunk as this would interrupt users currently working. alacer shares three methods in order of least to most interruptive: a bump method to break all caching in the webserver, running the debug/refresh endpoint, or restarting only the splunkweb service. Test out what solution works best for your environment.
https://answers.splunk.com/answers/315160/how-to-update-splunk-after-javascript-changes-with.html
Thanks for reading!
Missed out on the first forty Smart AnSwerS blog posts? Check ‘em out here!
http://blogs.splunk.com/author/ppablo