Configure Nginx Reverse Proxy For Grafana Access

Published on Author gryzli

Proxying Grafana with Nginx is easy, but there are some small thins that needs to be considered. If you have already tried this and received strange errors like: 192.168.1.1 – – [09/May/2019:10:26:58 +0300] “-” 000 0 “-” “-” “-“ or 499 errors in your nginx proxy logs or Grafana dashboard graphics not being loaded most… Continue reading Configure Nginx Reverse Proxy For Grafana Access

Nginx Proxying Long URL Addresses

Published on Author gryzli

If you are using Nginx as reverse proxy, you may encounter some of the following behaviors Receiving Empty Lines In Nginx Log

Receiving 499 Status Code While Proxying I was observing such behavior when trying to access some very long URL/URI’s through nginx proxying. The bad thing is that Nginx doesn’t log anything usefull,… Continue reading Nginx Proxying Long URL Addresses

How To Use Ansible For Centos 5 / RHEL 5

Published on Author gryzli

If you try to run some of your playbooks over old Centos/Rhel 5 host, you might be ending with weird message like this: {“changed”: false, “module_stderr”: ” File \”<stdin>\”, line 39\n with open(module, ‘wb’) as f:\n ^\nSyntaxError: invalid syntax\n”, “module_stdout”: “”, “msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”, “rc”: 1} Without going into too… Continue reading How To Use Ansible For Centos 5 / RHEL 5

Detailed CPU Usage Overview With psacct

Published on Author gryzli

If you ever asked yourself the following questions, this might be the right place for you: How to check how much cpu is consuming each system user ? How to check how much cpu is consumed by each command ? Check when a command has been executed and how much cpu it did ? How… Continue reading Detailed CPU Usage Overview With psacct

Working With Ingest Pipelines In ElasticSearch And Filebeat

Published on Author gryzli

What are ingest pipelines and why you need to know about them ? Ingest Pipelines are powerful tool that ElasticSearch gives you in order to pre-process your documents, during the Indexing process. In fact they are integrating pretty much of the Logstash functionality, by giving you the ability to configure grok filters or using different… Continue reading Working With Ingest Pipelines In ElasticSearch And Filebeat

Tuning Ansible For Maximum Performance

Published on Author gryzli

I hate stuff running slow and I love Ansible.  In this guide, I will share how achieved more than 50x speedup for executing simple ansible playbooks (which are meant to be fast , but they was not ).   Measuring Ansible Tasks Execution Time Before optimizing whatever it is, we should have some good baseline… Continue reading Tuning Ansible For Maximum Performance

Advanced Filebeat Configuration

Published on Author gryzli

If you have made it through the initial filebeat installation , you may want to do some more interesting stuff with Filebeat. Here I will share some of my experience with it.   Configuring Filebeat To Tail Files This was one of the first things I wanted to make Filebeat do. The idea of ‘tail‘… Continue reading Advanced Filebeat Configuration

Installing And Configuring Filebeat On Centos/RHEL

Published on Author gryzli

Filebeat is a perfect tool for scraping your server logs and shipping them to Logstash or directly to ElasticSeearch. You will find some of my struggles with Filebeat and it’s proper configuration.   Installing Filebeat under Centos/RHEL As with all ELK products the installation process is really easy and straight forward. Filebeat could be easily… Continue reading Installing And Configuring Filebeat On Centos/RHEL

Linux Admin Daily Usage

Published on Author gryzli

Shell   Calculate the size of all files from a given type/extension Recently I need something for doing such calculations and end up with the following command line (found on stackexchange), which will calculate the size summary for all “*.jpg” files in “some_directory”.

    Using Linux moreutils  Recently I found out the existence… Continue reading Linux Admin Daily Usage

ElasticSearch CheatSheet

Published on Author gryzli

ElasticSearch Example Queries  Searching with wildcard query.   Changing the size of the search result to 100 items. 

Filter aggregations by minimum document count in the result by using min_doc_count setting.

Check cluster health information

Check cluster settings

Check index mappings and settings

Check indexes recovery stats

Check shard… Continue reading ElasticSearch CheatSheet