Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Reply
 
Thread Tools Display Modes
  #1  
Old 11-20-2012, 06:56 PM
gates2010 gates2010 is offline
Registered User
 
Join Date: Jun 2012
Posts: 18
Question Auto-save log files by folders based on host-name

hi,
I am using SecureCRT 6.7.5 on windows, I currently have logging setup for each and every session I connect to using the "log file" in "default session" under Options.

I am trying to setup secureCRT to save log files by individual host rather than all files in one folder....


is there a way to do this?

Thank you,
Reply With Quote
  #2  
Old 11-21-2012, 09:07 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,020
Hello gates2010,

Could you give me an example of your current log file configuration in the Default Session?

Do you connect via saved sessions or only by "ad hoc" connections (via Quick Connect or Connect Bar)?

If you use saved sessions and the hostname in the Connection / SSH2 category (or Connection / Telnet, etc.) is what you want the folder named by, then you can use the %H substitution variable.
For example:
C:\%H\%M%D%Y.txt

would result in:
C:\Hostname\11212012.txt
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 11-21-2012, 11:46 AM
gates2010 gates2010 is offline
Registered User
 
Join Date: Jun 2012
Posts: 18
Hi Brenda,

I mostly use saved sessions to connect,here is my current log filename configuration for default session:
C:\SecureCRTlogs\%S_%Y_%M_%D_%h%m%s_%t.log

I will try the config with the following and see if hostnames folders are automatically created...

C:\SecureCRTlogs\%S\%S_%Y_%M_%D_%h%m%s_%t.log


Thank you.
Reply With Quote
  #4  
Old 11-21-2012, 12:06 PM
gates2010 gates2010 is offline
Registered User
 
Join Date: Jun 2012
Posts: 18
Thumbs up

Hi Brenda,

Awesome!! secureCRT automatically creates folders to store the log files now... thank you.
Reply With Quote
  #5  
Old 11-21-2012, 12:33 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,020
Hi gates2010,

To clarify %S will use the session name (as displayed in the Connect dialog).

If your sessions happen to be named by hostname, then you will be fine.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #6  
Old 11-21-2012, 12:36 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,020
Hi gates2010,

We must have been posting at the same time.

Thanks for the update. I am glad to hear the issue is resolved!
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply

Tags
default session , folders , logging , securecrt


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 06:53 AM.