Tab in log statement using aFlex

Posted by brunov When creating a log statement using aflex, is there a way to add a so that the log could be tab separated? See example: Time: 10:31:21 ip: 192.168.1.1 request: www.example.com/index.html query: ?uejdmski89e7ks sorry, this interface does not accept white space, so see as an actual tab.

Posted by ddesmidt

aFleX is based on TCL. TCL supports “tab” and it’s command is “\t”.

Here is an example of aFleX log for your need: log_“$date_time_request \t ip:$c_ip \t request:$request \t query:$query”

Note: Of course you have to define the variables “$c_ip” “$request” “$query” before in your aFleX script.

Dimitri