Giter VIP home page Giter VIP logo

gravitee-reporter-file's Introduction

Gravitee File Reporter

Build Status

Presentation

This reporter write access logs to a file, by corresponding one line to one request access to gateway.

Line format

For now, line format is defined as the following:

[TIMESTAMP] (LOCAL_IP) REMOTE_IP API KEY METHOD PATH STATUS LENGTH TOTAL_RESPONSE_TIME

Where:

  • TIMESTAMP is the timestamp from which request began to be processed by gateway;
  • LOCAL_IP is the local host's IP, i.e., the Gravitee node's IP which have processed request;
  • REMOTE_IP is the remote host's IP;
  • API is the requested API name;
  • KEY is the key used to request to API;
  • METHOD is the HTTP method contained into the request;
  • PATH is the HTTP path contained into the request;
  • STATUS is the HTTP response status received from the API;
  • LENGTH is the HTTP Content-Length value received from the API.
  • TOTAL_RESPONSE_TIME is the total response time to process request (API + gateway response time).

Configuration

Hereafter available configuration parameters:

Parameter name Description Default value
fileName File name to write access logs access-yy_mm_dd.log
append Append to the existing file is necessary true
retainDays The number of days to retain files before deleting one 0 (to retain forever)
dateFormat The date format used to write access logs yyyy_MM_dd
backupFormat The format for the file extension of backup files HHmmssSSS

gravitee-reporter-file's People

Contributors

brasseld avatar graviteeio avatar abourdon avatar nicolasgeraud avatar benbenw avatar tcompiegne avatar ldassonville 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.