5. Monitoring, Logging and Statistics

statisticsCSV

Writes statistics (time, status code, hostname, URI, etc.) about exchanges passing through into a CSV file (one line per exchange).

Explanation:

Note that the CSV file is UTF-8 encoded.

Can be used in:

serviceProxy, api, stompProxy, swaggerProxy, if, registration, wsStompReassembler, interceptor, bean, internalProxy, transport and soapProxy

Syntax

<statisticsCSV file="path" />

Sample

<beans>
  <transport coreThreadPoolSize="20">
	<ruleMatching />
	<dispatching />
	<userFeature />

	<statisticsCSV file="c:/temp/stat.csv" />

	<httpClient />
  </transport>
</beans>

Attributes

NameRequiredDefaultDescriptionExample
file true - Locations of csv file to write out logs. stat.csv