Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading the file name to watch from the yml file #44

Open
afranz33 opened this issue Apr 25, 2014 · 1 comment
Open

Reading the file name to watch from the yml file #44

afranz33 opened this issue Apr 25, 2014 · 1 comment

Comments

@afranz33
Copy link

When I add this entry into the generated newrelic yml file and run the agent i keep getting the error below:

I'd like to make a absolute path to a file, I've tried many different ways, could someone help?

log_path: c:/log.txt
log_path: c:\log.txt
log_path: c:\log.txt
log_path: log.txt

yml file section:
agents:
my_logfile_1:
# Full path to the the log file
log_path: c:/log.log
# Returns the number of matches for this term. Use Linux Regex formatting.
# Default: "[Ee]rror"
term: "[Ee]rror "
# Provide any options to pass to grep when running.
# For example, to count non-matching lines, enter 'v'.
# Use the abbreviated format ('v' and not 'invert-match').
grep_options:

c:\Scripts\newrelic_logwatcher_agent>ruby newrelic_logwatcher_agent.rb
Agent Logwatcher is at version 0.0.2
c:/Scripts/newrelic_logwatcher_agent -> This is the cur directory
c:/log.log
Error occurred in poll cycle: No such file or directory - test -e c:/log.log
Gathered 0 statistics

@blckmorning
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants