#1
|
|||
|
|||
Merging log file
Scenario-
What is the objective of raising this thread? We need to combine/redirect all these session log for all the commands run for a group to a single file. Would you please share how can we achieve this target? Regards, Ashish |
#2
|
|||
|
|||
HI
this is my workaround 1.install powershell core on your computer. 2.go to your log file folder 3.run command Code:
cat *.txt | Get-Content all.txt Code:
cat *.log | Get-Content all.log |
#3
|
|||
|
|||
Hi Ashish,
A workaround such as kingzleshe has suggested may be your best option. The problem with your objective is if you have multiple sessions open writing to one log file (as configured in the sessions) then there could be a race condition among them with regards to which session is writing to the file at any given time. If your goal is just to run commands to multiple hosts and capture the output, you can set the variable on line 164 of this example Python script from the forums to False and it will log multiple sessions with a separator between each host. g_bLogToIndividualFilesPerHost = False
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
![]() |
Tags |
log_for_multiple_session |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|