Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmsano committed Apr 12, 2020
1 parent f58c24d commit c57f113
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions BigQuery/log_format
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"request_id":"%{digest.hash_sha256(req.url)}V",
"ingestly_id":"%{json.escape(if(req.http.Cookie:ingestlyId, req.http.Cookie:ingestlyId, subfield(req.url.qs, "rootId", "&")))}V",
"session_id":"%{json.escape(if(req.http.Cookie:ingestlySes, req.http.Cookie:ingestlySes, subfield(req.url.qs, "rootId", "&")))}V",
"is_id_new":"%{json.escape(if(req.http.Cookie:ingestlyId && subfield(req.url.qs, "ck", "&") == "true", "false", "true"))}V",
"is_session_new":"%{json.escape(if(req.http.Cookie:ingestlySes && subfield(req.url.qs, "ck", "&") == "true", "false", "true"))}V",
"is_id_new":"%{json.escape(if(req.http.Cookie:ingestlyId && subfield(req.url.qs, "ck", "&") != "false", "false", "true"))}V",
"is_session_new":"%{json.escape(if(req.http.Cookie:ingestlySes && subfield(req.url.qs, "ck", "&") != "false", "false", "true"))}V",
"root_id":"%{json.escape(urldecode(subfield(req.url.qs, "rootId", "&")))}V",
"since_init_ms":"%{if(subfield(req.url.qs, "sinceInitMs", "&"), subfield(req.url.qs, "sinceInitMs", "&"), "-1")}V",
"since_prev_ms":"%{if(subfield(req.url.qs, "sincePrevMs", "&"), subfield(req.url.qs, "sincePrevMs", "&"), "-1")}V",
Expand Down
4 changes: 2 additions & 2 deletions Elasticsearch/log_format
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"request_id":"%{digest.hash_sha256(req.url)}V",
"ingestly_id":"%{json.escape(if(req.http.Cookie:ingestlyId, req.http.Cookie:ingestlyId, subfield(req.url.qs, "rootId", "&")))}V",
"session_id":"%{json.escape(if(req.http.Cookie:ingestlySes, req.http.Cookie:ingestlySes, subfield(req.url.qs, "rootId", "&")))}V",
"is_id_new":"%{json.escape(if(req.http.Cookie:ingestlyId && subfield(req.url.qs, "ck", "&") == "true", "false", "true"))}V",
"is_session_new":"%{json.escape(if(req.http.Cookie:ingestlySes && subfield(req.url.qs, "ck", "&") == "true", "false", "true"))}V",
"is_id_new":"%{json.escape(if(req.http.Cookie:ingestlyId && subfield(req.url.qs, "ck", "&") != "false", "false", "true"))}V",
"is_session_new":"%{json.escape(if(req.http.Cookie:ingestlySes && subfield(req.url.qs, "ck", "&") != "false", "false", "true"))}V",
"root_id":"%{json.escape(urldecode(subfield(req.url.qs, "rootId", "&")))}V",
"since_init_ms":"%{if(subfield(req.url.qs, "sinceInitMs", "&"), subfield(req.url.qs, "sinceInitMs", "&"), "-1")}V",
"since_prev_ms":"%{if(subfield(req.url.qs, "sincePrevMs", "&"), subfield(req.url.qs, "sincePrevMs", "&"), "-1")}V",
Expand Down
Loading

0 comments on commit c57f113

Please sign in to comment.