2016-07-18 09:08 AM
Hi,
To integrate Apache tomcat server we need to specify some values in sftpagent.conf file.
An example configuration file for setting up an Apache event source(Source :sadocs)
dir0=C:\Program Files\Apache Group\Apache2\logs
dir0.filespec=access_log*
dir0.interval=60
dir0.has_header=false
dir0.compression=true
dir0.enabled=true
dir0.ftp=enVisionIP,nic_sshd,publickey,APACHE_10.10.31.155
Can anyone please explain me last line? Do I need to mention Apache Server's IP add or Hostname?
Please assist me.
2016-07-18 09:34 AM
Greetings Atul ;
Below is a valid line to be used with SA
dir0.ftp=Log Collector-ip-address,sftp,sftp,publickey,//upload/event-sourcetype/filedirectory
*Where in the one you sent , nic_sshd is an account name used in envision and , Public Key denote the use of public key generated to send the file .
*A double // is used before upload to identify the full path , where you can use /home/upload rather than //upload .
*Documentation is already being reviewed via our documentation to separate any confusion between SA and Envision conf file.
Kindly use the above line in the conf file on the Apache without mentioning the Apache hostname/IP as the file is pointing toward the log collector and let me know how it goes .
Best Regards
2016-07-19 07:32 AM
Hi Omar,
Thanks alot. I will surely check this. I have one more query.
We have IIS and Apache on single server. In this case do we need to create 2 conf file or 1 conf file with two set of line, one for IIS and One for Apache.
2016-07-19 09:39 AM
Hello Atul
Though Not tested in my lab.
It is a valid option to use a single conf file with dir0 and dir1 variety .
Example Change the parameter at will , those value are for illustration how i picture the .conf file will look like according to you settings :
--------------------------
dir0=C:\Program Files\Apache Group\Apache2\logs
dir1=C:\Windows\System32\LogFiles\W3SVC1 .
dir0.filespec=access_log*
dir1.filespec=WC3*
dir0.interval=60
dir1.interval=60
dir0.has_header=false
dir1.has_header=false
dir0.compression=true
dir1.compression=true
dir0.enabled=true
dir1.enabled=true
dir0.ftp=logcollectorIP,sftp,sftp,publickey,//upload/event-sourcetype1/filedirectory
dir1.ftp=logcollectorIP,sftp,sftp,publickey,//upload/event-sourcetype2/filedirectory
Lets Try that and let me know how it goes !
Thank you !
2016-07-19 09:43 AM