On Fri, 24 Aug 2018 at 14:13, Cyril Micoud <[email protected]> wrote:
>
> Hi,
>
>
>
> We can define two types of logger in virtualhost : File and Syslog
>
>
>
> For File logger:
>
>                 Can I download log files via REST api?
>
>

Yes, that is supported. The VirtualHostFileLogger object gives you, amongst
other attributes, an attribute logFiles that is a list the log files known
to the logger. It also gives you operations that get the contents of a
single log file (getFile), or a set of log files (getFiles), or all files
(getAllFiles).  The latter two return you a zip stream.  I give you a link
to the relevant parts of the documentation and a couple of example commands
to get you going.

# Assuming a virtualhost logger named mylogger and a virtualhostnode and
virtualhost named foo
curl --user admim
https://localhost:8080/api/latest/virtualhostlogger/foo/foo/mylogger
curl --user admin  --data '{"fileName" : "mylogger.log"}'
https://localhost:8080/api/latest/virtualhostlogger/foo/foo/mylogger/getFile

https://qpid.apache.org/releases/qpid-broker-j-7.0.6/book/Java-Broker-Management-Channel-REST-API.html

>
> Syslog provide an Host and a Port…
>
> So my question is:
>
> Is it possible to access/read syslog with a REST request?

The VirtualHostSyslogLogger simple forwards the log events to an external
syslog daemon that you provide.  You would then use whatever facilities
provided by the daemon to read/process those events.  You could look at
tools such as Splunk and Logstash both of which have the ability to receive
syslog events.


>
>
>
> Best regards,
>
>
>
> Cyril
>
>
>
>
>
> Cyril MICOUD
>
> Software Development Engineer
>
>
>
> Office : +33 (0)4 76 33 59 88
>
> email: [email protected]
>
> Skype: cyril.micoud_vitech
>
>
>
>
>
> www.vitechnology.com
>
>
>
> Vi TECHNOLOGY - Rue Rochepleine - 38120 SAINT EGREVE - FRANCE
>
> Follow us on ,  and
>
>
>
> This message and any attachments are confidential and intended solely for
the addressees. Any unauthorized use or dissemination is prohibited.
E-mails are susceptible to alteration. VIT shall not be liable for the
message if altered, changed or falsified
>
>

Reply via email to