Powershell script:
# - START - Param
$location = "C:\Users\zaytsev.ayu\Desktop\wd\Log\"; #folder with logs
$name_result_file = "!result_get_70_file.txt"; # name of folder
$result_file = $location + $name_result_file; # saving point
# - END - Param
$array_dir_name = Get-ChildItem -Path $location -Force -ErrorAction SilentlyContinue | Select-Object Name;
$n = 0; #starting point
Write-Output ($array_dir_name.Count); #count of files in $location
while ($n -lt $array_dir_name.Count)
{
$current_file = $location + $($array_dir_name[$n].Name);
Write-Output ($current_file);
if( Test-Path -Path $current_file -PathType Leaf -ErrorAction SilentlyContinue ) {
$lines = Get-Content $current_file;
foreach ( $line in $lines ) {
if ( $line -match "GET (?<content>.*) HTTP/1.1" ) { #regular expression for matching needed content from row
#Write-Output ($matches['content']);
Add-Content -Path $result_file -Value $matches['content'];
}
}
}
$n++;
#if ($n -eq 100) {
# break; #stopping point
#}
}
Found url prefixes | Possible final mask for SRCURL |
/com.sap.portal.ivs.iviewservice/ /com.sap.portal.layouts.framework/ /com.sap.portal.navigation.afp.dtn/ /com.sap.portal.navigation.afp.dynamicnavigation/ /com.sap.portal.navigation.afp.layout/ /com.sap.portal.navigation.afp.masthead/ | /com.sap.portal* |
wdisp/system_1 = SID=<SID>, MSHOST=<FQDN Message service (MS)>, MSPORT=<port of MS>, SRCURL=/com.sap.portal;/irj/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 | |
3 | |
3 |