A colleague just came to me and asked me for a solution to hide “Create New Dashboard” button. The reason behind this is that we have some splunk dashboard, we just want the user to read it, we don’t want them to do any search on our Search Head, we have some roles to hide all search function, but the “Create New Dashboard” is like a backdoor – we want to avoid this. After digging through the source code, we found that this button is generated from this file: /opt/splunk/share/splunk/search_mrsparkle/exposed/build/pages/enterprise/dashboards/dashboards.js The location of this file might be different depending on your Splunk version , myRead More →

When i run multiple sitespeed docker , i faced this error To fix this i have to add 2 parameters to sitespeed command: It turned out that the above fix will kill the video capture. After looking through my change log, the option “–name ” was actually the root cause. It looks like when we use the –name option, docker will reuse the socket. The final fix was to remove that option (–name)Read More →

I recently see a good deal from Staples for a Dell monitor – it’s 50% off , unfortunately it’s out of stock very soon. I can’t visit it everyday, so let do some funny stuff , writing a simple command to alert me when it’s in stock again. Here is what it comes withRead More →

The most common problem with all Mac machine is overheating. if you are using a Macbook Pro or Imac , you sometime feel it’s too hot. This might result in killing your graphic card. It’s very expensive to replace that card or unable to replace it ( you have to replace the whole mother board). I have experienced this with my Macbook Pro 2011 and IMac 2011, they are all dead after sometimes because the overheat. Since then, i need to find a way to monitor my cpu temperature and adjust the fan speed to cool down the cpu. For a normal user, i suggestRead More →

I have a graphite setup using a docker , now i setup another stand-alone graphite instance , i setup them as a cluster meaning both of them can see data each other. The weird thing is that the docker instance can see data from stand alone instance. But stand alone instance can’t see data in docker instance. i doubt it’s a network issue, but it’s not , i can see stand-alone sending query to docker. i don’t see any error in the graphite web log, i finally find a way to turn on the log. We need to turn on DEBUG=True in local_settings.py , thenRead More →

I had some difficulties when trying to install collectd on Redhat 7 – the error was No package collectd available. I tried different method, and ends up with this solutionRead More →