Splunk: Python 2 addons for v8.
Splunk: Python 2 Add-ons for v8 Splunk is one of the most popular platforms for searching, monitoring, and analyzing machine data from websites, applications, and IT infrastructures. It is widely used for data analysis, monitoring, and troubleshooting across various industries. However, as technology progresses, the underlying software and its dependencies evolve as well. Splunk, like many other applications, has shifted its focus to Python 3, leaving older Python 2-based add-ons and custom scripts in a state of transition. In this article, we’ll explore the use of Python 2 add-ons in Splunk version 8 and what you need to know when working with them. Python 2Read More →
InfluxDB: influxdb-relay vs influxdb-srelay
are primarily used as a relay to the actual influxdb. The free influx db does not provide the high availability function. We use influxdb-relay or influxdb-srelay as the relay to the actual influxdb. With this approach your data can be saved in multiple influxdb copies. That’s the main purpose, but here are some difference between them. Influxdb-relay : can support HTTP & UDP protocol . Only supports write operation, it does not support query. The destination backend set is fixed. Have a cache to store data when the backend is down temporarily. If the backend is down for too long, the cache will not beRead More →
PHP: replace all bad words with some text
The following script will replace all bad keywords with *** . The keyword variable accepts multiple keywords, they must be separated with a comma (,) .Read More →
Splunk: display all metrics info
Splunk: Display All Metrics Info In today’s digital-first world, the need for real-time insights into the health, performance, and security of systems is paramount. As organizations scale their operations, the complexity of their infrastructure grows. This complexity requires tools that can provide clarity, break down data silos, and help in quickly identifying and resolving issues. One such powerful platform is Splunk, a leader in machine data analytics that allows users to search, monitor, and analyze large volumes of data from various sources. One of the key features of Splunk is its ability to process and display metrics data, which provides valuable insights into the performanceRead More →
Macbook pro 2013-2015 : can’t turn it on
I have a Macbook pro with this symptom: it’s not powered on , tried to hold the power button for long time , still nothing happen. I tried with and without power adaptor, result is still the same.I open the laptop and disconnect the battery, connect the power adapter , it turns on and working perfectly.Is the battery bad? i connect the battery back, it’s working fine. But then i shut it down, i can’t turn it on back.what is the issue? it’s because the power key is dead. The power key is a part of keyboard system. Solution? there are 3 replace the keyboard:Read More →
How to troubleshoot high CPU usage on Linux?
High CPU usage is a common issue in every system, finding the root cause is not always easy. What the sign of a high CPU usage? I normally look at load avg , if the load avg is higher than the number of your CPU cores , then your system is overloaded. I have 8 cores, so my number is good. Sometimes we our load avg does not reach to the cpu cores , but we still see some application is slow, it’s because there is a process occupies the one single CPU core. My next step will be check the CPU usage per processRead More →
Application Insights: There is no ApplicationInsights.config
We tried to add Application Insights from Visual Studio Menu, the system said that version 2.15 installed, but we don’t see ApplicationInsights.config created.It turned out that our dotnet project is 4.5 while AppInsights version 2.15 requires dotnet must be 4.5.2 or higher. Visual Studio should show an error for this, but it doesnt. Solutions ? there are 2 ways you can fix it.1) keep your current dotnet version and downgrade your appinsights version to 2.14 2) upgrade your dotnet version to the latest and also update appinsights to the latest as well. How to update AppInsights versiion , right click on the project and selectRead More →
Python: Timeout a function
Sometimes we have a function running too long more than we expect, we want to kill it after a certain time. For example, we have a function connecting to a remote share, the function we use to connect does not provide a timeout or we can’t change its timeout.Our solution is to build a timeout function to kill the function if it runs too long. I found this good and simple code: How do i use it?Read More →