Skip to content

Instantly share code, notes, and snippets.

location ~* "a regex to match content from Azure storage" {
set $uri_x 0; # dummy declare
rewrite_by_lua_file "lua/redis.lua";
}
location /azure_storage_proxy_pass_sas {
internal;
# rewrite_log on;
rewrite ^ $uri_x break;
package beater
import (
"strconv"
"time"
"github.com/elastic/beats/libbeat/beat"
"github.com/elastic/beats/libbeat/common"
"github.com/elastic/beats/libbeat/logp"