The statisticsCSV plugin logs access data into a file. The fields will be separated by semicolon ;, so that you can import the data e.g. into Excel.
In this example we will visit a website and take a look at the logs that have been created.
To run the example execute the following steps:
-
Go to the
examples/logging/csvdirectory. -
Execute
membrane.shor membrane.cmd` -
Open the URL http://localhost:2000 in your browser.
-
Look into the file
log.csvthat is created in thelogging-csvdirectory. You should see something like:
200;2023-08-30 14:51:25.760;:2000;GET;/shop/v2/;ip6-localhost;null;;unknown;application/json;unknown;613;
200;2023-08-30 16:25:03.501;:2000;GET;/shop/v2/;ip6-localhost;null;;unknown;application/json;unknown;605;
See:
- statisticsCSV reference