Logs

20 views
Skip to first unread message

Balasubramaniyan Kannan

unread,
Feb 17, 2015, 10:39:07 PM2/17/15
to vamonos-...@googlegroups.com
HI All 

How do I enable logging in vsconsole. 

Our team here has central server where logs from all servers are pushed and stored server-vise.

In this case in my configuration  can i  add in  the following format:

fileview.directory= < /logs/>

or is there are possibility we can use reg exp to expose the folder's 

thanks in advance 

VamonosSoftware

unread,
Jun 26, 2015, 9:39:14 PM6/26/15
to vamonos-...@googlegroups.com, infob...@gmail.com
You can't do regex at this stage, but you can specify the extensions to include.

For example:

## extensions

fileview.directory=/var/log

fileview.directory=/var/tmp

## only exposes *.log and *.txt in /tmp, does not expose *.properties

fileview.directory=/tmp;log;txt



vsAgent

vsAgent is a java application which exposes files on the server it is running on. It can be 

configured to only expose files in certain directories with given extensions, and even within a 

specified maximum age.

A vsAgent configuration looks something like the following:

# Global

port=8081

# Only expose files that have been modified with the last [maxage] days

maxage=1

# Global extension filter

## All files exposed will have one of the following extensions.

fileview.extension=properties

fileview.extension=log

fileview.extension=txt

# Directories

# [directory path];[semicolon separated list of extensions]

#

# Since the global extension filter is always applied, you only need

# to specify extensions here if you want to specify a subset of the

# global extensions.

## exposes all files in these directories that have one of the global

## extensions

fileview.directory=/var/log

fileview.directory=/var/tmp

## only exposes *.log and *.txt here, does not expose *.properties

fileview.directory=/tmp;log;txt

Note, vsAgent has to be run as a user which has read access to the desired files.
Reply all
Reply to author
Forward
0 new messages