Windows nxlog - Wildcard Directories in Config File - nxlog

I have the following folder structure:
-job-folders
-1
-log.txt
-2
-log.txt
-3
-log.txt
I want to do watch log.txt in all of the above job folders. I am currently using:
<Input my-log>
Module im_file
File "C:\job-folders\*\log.txt"
SavePos TRUE
Recursive TRUE
</Input>
In nxlog.log, I get
2015-12-21 12:10:25 ERROR apr_stat failed on file C:\job-folders\*\log.txt; The filename, directory name, or volume label syntax is incorrect.
I know it says explicitly that directory names cannot be wildcarded at https://nxlog.co/docs/en/nxlog-reference-manual.html#im_file_config_file
Is there a way around this?

The pattern I was looking for was
File "C:\job-folders\\\*log.txt"

Related

Copy from a valid csv file but postgres blind to find

I tried to copy csv data to a table with
#+begin_src sql :engine postgresql :dbuser postgres :dbpassword 1618 :database analysis
COPY us_counties_2010
FROM 'data/us_counties_2010.csv'
WITH (FORMAT CSV, HEADER);
#+end_src
It report error
psql:/tmp/babel-x3dXSm/sql-in-zo3MDm:3: ERROR: could not open file "data/us_counties_2010.csv" for reading: No such file or directory
HINT: COPY FROM instructs the PostgreSQL server process to read a file. You may want a client-side facility such as psql's \copy.
The error "data/us_counties_2010.csv" for reading: No such file or directory does not exits, make no sense.
Because, it does exsit
#+BEGIN_SRC shell
ls -l 'data/us_counties_2010.csv' | sed "s/$USER/me/g"
#+END_SRC
#+RESULTS:
: -rw-rw-r-- 1 me me 1170359 Dec 7 10:22 data/us_counties_2010.csv
What's the problem? Does postgres developers invented yet another arcane path rules to prohibit users?
Where does the file exist? You are using an relative path.
When you use "COPY", what you get is:
The path will be interpreted relative to the working directory of the server process (normally the cluster's data directory), not the client's working directory.
Using \copy rather than COPY will get you not only the client's permissions, but also the clients working directory when searching for the file.
File permissions? I see that "me" has permissions. What user is postgresql?

Trying to use: zbstudio.exe -cfg "ini=false" but where do I put the path and filename of my alternative ini file?

With the above I get the error msg below in the console:
Can't open file 'ini=false': the system cannot find the file specified.
It's trying to open the filename 'ini=false'!?
ini=false is the default value. The documentation you referenced provides several examples: ini='file.ini' will create file.ini in the default system-dependent location, ini='./file.ini' will create file.ini in the ZeroBrane Studio folder, and ini='d:/file.ini' will create file.ini in the root directory of the D: drive.
I don't get any error messages in the console when I run it with zbstudio.exe -cfg "ini=false".

apache error log backup auto

This is my first question. I don't know how to config error.log has 2 function as below:
The log generated by current day will output to one fixed name log file. e.g error.log. This current log contains the current generated log only.
The previous log will back-up to single log file. e.g:
yesterday is 11/22/2013, so the error log of yesterday is named 11_22_2013.error.log
You can make use of the rotatelogs command to log rotate the apache logs. Try to put the following as a crontab.
crontab -e
Add the following there.
/usr/local/apache/bin/rotatelogs /path_to_apachelogs.%Y.%m.%d 86400
/usr/local/apache/bin/rotatelogs This path is meant for a cPanel server. You needed to give the full path for it to work. You can use the following command for getting the path.
which rotatelogs
If this is not showing any outputs, Try to locate the path with the locate command.
You can have further awareness from the following link

C : Unable to open file in modeFatal

I compiled a C code using make then afterwards I issued this command on linux terminal
./regex --parse /ruleset/snort34.re --debug
where snort34.re is a file which I want to open for parsing but it gives me this error
Unable to open file in /ruleset/snort.re in modeFatal
Can anyone please help me why I am getting this error and what is modeFatal?
You have passed /ruleset/snort34.re to the program, which will look in a folder in your root directory called ruleset. You probably want to use a relative path instead, ruleset/snort34.re.

reputation module installation in phpbb3

Hi i am trying to install phpbb-reputation system i followed the xml file for installation but while executing install_reputation.php i am getting this error ERROR: Could not open the file ./styles/afterburnerafterburner_config.html for reading.There are many errors in the same fashin. where i gues it is not going inside afterburner/template folder where .html file exists. where should i check this?
More error samples:
Refreshing the proFormell template
ERROR: Could not open the file ./styles/proFormellcaptcha_recaptcha.html for reading.
Sounds like it's a permissions issue; if hosting on a LAMP server, just run chmod 755 * -R in the website root directory. Alternatively you could also change file permissions using an FTP client