Options

Tab in log statement using aFlex

Posted by brunov

When creating a log statement using aflex, is there a way to add a <tab> so that the log could be tab separated? See example:

Time: 10:31:21 <tab> ip: 192.168.1.1 <tab> request: www.example.com/index.html <tab> query: ?uejdmski89e7ks

sorry, this interface does not accept white space, so see <tab> as an actual tab.

Comments

  • Options
    edited February 2014
    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
Sign In or Register to comment.