Coder Social home page Coder Social logo

gcp-log-postprocess's Introduction

Global Option Variables:

  • -v nohead=BOOLEAN Do not print a header on line 1 if true
  • -v show=id Show the id parameter for fast and slow methods
  • -v show=when Show local timestamps for the fast and slow methods
  • -v histogram=calls Show histogram for api calls over time
  • -v histogram=STRING Show histogram for api called 'method'/string over time
  • -v population=BOOLEAN Use population standard deviation if true
  • -v resolution=minutes Set time difference resolution to tens of minutes

Input: RFC 4180 compliant CSV file with CRLF newlines generated by 'gcloud logging read' with at least the following fields:

  • latency
  • timestamp
  • request_url

Output: TSV (tab separated values) file with LF newlines with a histogram or call summary

  • x̄ = sample mean (average)
  • s = sample standard deviation
  • μ = population mean (average)
  • σ = population standard deviation

Example Google Cloud SDK command:

gcloud logging read 'httpRequest.userAgent:"menu/" AND (
      (timestamp >= \"2021-02-01T11:00:00+09\"
         AND timestamp < \"2021-02-01T14:00:00+09\") OR
      (timestamp >= \"2021-02-01T17:00:00+09\"
          AND timestamp < \"2021-02-01T22:00:00+09\")
      --format="csv(httpRequest.latency,timestamp,httpRequest.requestUrl)")'

gcp-log-postprocess's People

Contributors

havill avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.