Gatling: meaning of all fields in simulation.log file
Asked Answered
H

3

9

I could not find any documentation other than four longs being the bytes received at the start and end regarding simulation.log file in Gatling output. Below is sample line from the log:

My scenario - Sync  7526052819726874465-2088    REQUEST     My Page 1404439715068   1404439715068   1404439716103   1404439716103   OK

What does all of this stand for? Should we have this information somewhere in the Gatling documentation?

Thanks

Edit----------------------------------------------------------------------

I browsed through Gatling source and found the FileDataWriterSpec where outputting to the simulation.log is tested. According to this spec, we have an object RequestMessage which is used as an object to carry the logged data. According to this class:

case class RequestMessage(
    scenario: String,
    userId: String,
    groupHierarchy: List[String],
    name: String,
    requestStartDate: Long,
    requestEndDate: Long,
    responseStartDate: Long,
    responseEndDate: Long,
    status: Status,
    message: Option[String],
    extraInfo: List[Any]) extends DataWriterMessage {
  def responseTime = responseEndDate - requestStartDate
}

above must be: [scenario][userId][[groupHierarchy][name][first/last byte sent timestamp][first/last byte received timestamp][status]

Could anyone confirm? And what exactly is groupHierarchy?

Heiney answered 8/7, 2014 at 2:15 Comment(0)
S
8

Missing recordType:

[scenario][userId][recordType][groupHierarchy][name][first/last byte sent timestamp][first/last byte received timestamp][status][extraInfo]

Regarding groups, see documentation: https://github.com/excilys/gatling/wiki/Structure-Elements#group

Search answered 8/7, 2014 at 6:9 Comment(0)
A
3

I will quote answer of Gatling Lead Developer from 09/10/2015:

simulation.log format is not documented for a good reason: it's not a public API and is subject to frequent changes.

Alisaalisan answered 9/12, 2016 at 6:11 Comment(0)
F
1

You may have a look at this repo: https://github.com/nuxeo/gatling-report/tree/master/src/main/java/org/nuxeo/tools/gatling/report

There are java parser implementations for different gatling versions. Reverse Engineering... but better than nothing

Fagan answered 10/9, 2019 at 14:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.