You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by Xiangdong Huang <sa...@gmail.com> on 2020/02/11 13:34:12 UTC
remove the log of "login" and "close session" or move them into a
separate log file
Hi,
Is there someone being troubled with the following server log:
IoTDB: Login status: Login successfully. User : root
IoTDB: receive close operation
IoTDB: receive close session
When I checked one user's IoTDB log, I am stuck with so many "login" and
"close log records...
I know audit is important for a DB. If so, at least let's move this kind of
log to a separate log file.
Then, the log_all is just for checking whether an IoTDB instance has
exceptions.
How do you think?
best.
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University
黄向东
清华大学 软件学院
Re: remove the log of "login" and "close session" or move them into
a separate log file
Posted by Jialin Qiao <qj...@mails.tsinghua.edu.cn>.
Hi,
It could be a default configuration.
Thanks,
--
Jialin Qiao
School of Software, Tsinghua University
乔嘉林
清华大学 软件学院
> -----原始邮件-----
> 发件人: "Dawei Liu" <at...@163.com>
> 发送时间: 2020-02-13 15:24:10 (星期四)
> 收件人: dev@iotdb.apache.org
> 抄送:
> 主题: Re: remove the log of "login" and "close session" or move them into a separate log file
>
> Hi,
>
> I don't think this is an easy thing to do.
> If I have a cluster of 10 machines, do I need to login in one by one to modify logback.xml?
>
> Thanks
>
> Dawei Liu
>
> > 2020年2月13日 上午2:03,Xiangdong Huang <sa...@gmail.com> 写道:
> >
> > Hi,
> >
> > It is quite easy because we are using slf4j. We can implement it by just
> > modifying the logback.xml.
> > But if we want to get more audit log, we have to change the source codes of
> > IoTDB.
> >
> > Best,
> > -----------------------------------
> > Xiangdong Huang
> > School of Software, Tsinghua University
> >
> > 黄向东
> > 清华大学 软件学院
> >
> >
> > Dawei Liu <at...@163.com> 于2020年2月12日周三 下午8:27写道:
> >
> >> Hi,
> >>
> >> +1 for moving audit logs to another file, maybe we can add a configures to
> >> open/close to write audit logs
> >>
> >>
> >>> 2020年2月12日 下午7:59,Jialin Qiao <qi...@apache.org> 写道:
> >>>
> >>> Hi,
> >>>
> >>> +1 for moving audit logs to another file, but it's better to keep them..
> >>>
> >>> Thanks,
> >>> —————————————————
> >>> Jialin Qiao
> >>> School of Software, Tsinghua University
> >>>
> >>> 乔嘉林
> >>> 清华大学 软件学院
> >>>
> >>>
> >>> Xiangdong Huang <sa...@gmail.com> 于2020年2月11日周二 下午9:34写道:
> >>>
> >>>> Hi,
> >>>>
> >>>> Is there someone being troubled with the following server log:
> >>>>
> >>>> IoTDB: Login status: Login successfully. User : root
> >>>> IoTDB: receive close operation
> >>>> IoTDB: receive close session
> >>>>
> >>>> When I checked one user's IoTDB log, I am stuck with so many "login" and
> >>>> "close log records...
> >>>>
> >>>> I know audit is important for a DB. If so, at least let's move this
> >> kind of
> >>>> log to a separate log file.
> >>>> Then, the log_all is just for checking whether an IoTDB instance has
> >>>> exceptions.
> >>>>
> >>>> How do you think?
> >>>>
> >>>> best.
> >>>> -----------------------------------
> >>>> Xiangdong Huang
> >>>> School of Software, Tsinghua University
> >>>>
> >>>> 黄向东
> >>>> 清华大学 软件学院
> >>>>
> >>
> >>
Re: remove the log of "login" and "close session" or move them into a
separate log file
Posted by Dawei Liu <at...@163.com>.
Hi,
I don't think this is an easy thing to do.
If I have a cluster of 10 machines, do I need to login in one by one to modify logback.xml?
Thanks
Dawei Liu
> 2020年2月13日 上午2:03,Xiangdong Huang <sa...@gmail.com> 写道:
>
> Hi,
>
> It is quite easy because we are using slf4j. We can implement it by just
> modifying the logback.xml.
> But if we want to get more audit log, we have to change the source codes of
> IoTDB.
>
> Best,
> -----------------------------------
> Xiangdong Huang
> School of Software, Tsinghua University
>
> 黄向东
> 清华大学 软件学院
>
>
> Dawei Liu <at...@163.com> 于2020年2月12日周三 下午8:27写道:
>
>> Hi,
>>
>> +1 for moving audit logs to another file, maybe we can add a configures to
>> open/close to write audit logs
>>
>>
>>> 2020年2月12日 下午7:59,Jialin Qiao <qi...@apache.org> 写道:
>>>
>>> Hi,
>>>
>>> +1 for moving audit logs to another file, but it's better to keep them..
>>>
>>> Thanks,
>>> —————————————————
>>> Jialin Qiao
>>> School of Software, Tsinghua University
>>>
>>> 乔嘉林
>>> 清华大学 软件学院
>>>
>>>
>>> Xiangdong Huang <sa...@gmail.com> 于2020年2月11日周二 下午9:34写道:
>>>
>>>> Hi,
>>>>
>>>> Is there someone being troubled with the following server log:
>>>>
>>>> IoTDB: Login status: Login successfully. User : root
>>>> IoTDB: receive close operation
>>>> IoTDB: receive close session
>>>>
>>>> When I checked one user's IoTDB log, I am stuck with so many "login" and
>>>> "close log records...
>>>>
>>>> I know audit is important for a DB. If so, at least let's move this
>> kind of
>>>> log to a separate log file.
>>>> Then, the log_all is just for checking whether an IoTDB instance has
>>>> exceptions.
>>>>
>>>> How do you think?
>>>>
>>>> best.
>>>> -----------------------------------
>>>> Xiangdong Huang
>>>> School of Software, Tsinghua University
>>>>
>>>> 黄向东
>>>> 清华大学 软件学院
>>>>
>>
>>
Re: remove the log of "login" and "close session" or move them into a
separate log file
Posted by Xiangdong Huang <sa...@gmail.com>.
Hi,
It is quite easy because we are using slf4j. We can implement it by just
modifying the logback.xml.
But if we want to get more audit log, we have to change the source codes of
IoTDB.
Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University
黄向东
清华大学 软件学院
Dawei Liu <at...@163.com> 于2020年2月12日周三 下午8:27写道:
> Hi,
>
> +1 for moving audit logs to another file, maybe we can add a configures to
> open/close to write audit logs
>
>
> > 2020年2月12日 下午7:59,Jialin Qiao <qi...@apache.org> 写道:
> >
> > Hi,
> >
> > +1 for moving audit logs to another file, but it's better to keep them..
> >
> > Thanks,
> > —————————————————
> > Jialin Qiao
> > School of Software, Tsinghua University
> >
> > 乔嘉林
> > 清华大学 软件学院
> >
> >
> > Xiangdong Huang <sa...@gmail.com> 于2020年2月11日周二 下午9:34写道:
> >
> >> Hi,
> >>
> >> Is there someone being troubled with the following server log:
> >>
> >> IoTDB: Login status: Login successfully. User : root
> >> IoTDB: receive close operation
> >> IoTDB: receive close session
> >>
> >> When I checked one user's IoTDB log, I am stuck with so many "login" and
> >> "close log records...
> >>
> >> I know audit is important for a DB. If so, at least let's move this
> kind of
> >> log to a separate log file.
> >> Then, the log_all is just for checking whether an IoTDB instance has
> >> exceptions.
> >>
> >> How do you think?
> >>
> >> best.
> >> -----------------------------------
> >> Xiangdong Huang
> >> School of Software, Tsinghua University
> >>
> >> 黄向东
> >> 清华大学 软件学院
> >>
>
>
Re: remove the log of "login" and "close session" or move them into a
separate log file
Posted by Dawei Liu <at...@163.com>.
Hi,
+1 for moving audit logs to another file, maybe we can add a configures to open/close to write audit logs
> 2020年2月12日 下午7:59,Jialin Qiao <qi...@apache.org> 写道:
>
> Hi,
>
> +1 for moving audit logs to another file, but it's better to keep them..
>
> Thanks,
> —————————————————
> Jialin Qiao
> School of Software, Tsinghua University
>
> 乔嘉林
> 清华大学 软件学院
>
>
> Xiangdong Huang <sa...@gmail.com> 于2020年2月11日周二 下午9:34写道:
>
>> Hi,
>>
>> Is there someone being troubled with the following server log:
>>
>> IoTDB: Login status: Login successfully. User : root
>> IoTDB: receive close operation
>> IoTDB: receive close session
>>
>> When I checked one user's IoTDB log, I am stuck with so many "login" and
>> "close log records...
>>
>> I know audit is important for a DB. If so, at least let's move this kind of
>> log to a separate log file.
>> Then, the log_all is just for checking whether an IoTDB instance has
>> exceptions.
>>
>> How do you think?
>>
>> best.
>> -----------------------------------
>> Xiangdong Huang
>> School of Software, Tsinghua University
>>
>> 黄向东
>> 清华大学 软件学院
>>
Re: remove the log of "login" and "close session" or move them into a
separate log file
Posted by Jialin Qiao <qi...@apache.org>.
Hi,
+1 for moving audit logs to another file, but it's better to keep them..
Thanks,
—————————————————
Jialin Qiao
School of Software, Tsinghua University
乔嘉林
清华大学 软件学院
Xiangdong Huang <sa...@gmail.com> 于2020年2月11日周二 下午9:34写道:
> Hi,
>
> Is there someone being troubled with the following server log:
>
> IoTDB: Login status: Login successfully. User : root
> IoTDB: receive close operation
> IoTDB: receive close session
>
> When I checked one user's IoTDB log, I am stuck with so many "login" and
> "close log records...
>
> I know audit is important for a DB. If so, at least let's move this kind of
> log to a separate log file.
> Then, the log_all is just for checking whether an IoTDB instance has
> exceptions.
>
> How do you think?
>
> best.
> -----------------------------------
> Xiangdong Huang
> School of Software, Tsinghua University
>
> 黄向东
> 清华大学 软件学院
>