Find Jobs
Hire Freelancers

Develop Small PowerShell Script to Parse Log Files

$10-30 USD

Completed
Posted over 5 years ago

$10-30 USD

Paid on delivery
Looking for someone to create a PowerShell script which loops through all XML log files in a defined directory. If the filename contains “request” and the RequestCommand is “GetSessions” then extract the data for the tags defined below and insert the values into a SQL table. Looking for someone that could complete this today. I will provide example log files to work with. LogDirectory = C:\Logs ProcessedLogDirectory= LogDirectory\Processed SQLServer = localhost Logic 1.) Loop through all XML log files in the LogDirectory (do not include sub-directories) 2.) If the filename contains "request" then proceed with processing. If not, move the file to ProcessedLogDirectory. 3.) If the file contains <RequestCommand>GetSessions</RequestCommand> then proceed with processing. Else move the file to the ProcessedLogDirectory. 4.) Extract the following values and insert them into the database: a. RequestID b. GatewayHostname c. GatewayPort d. GatewayUsername e. DestinationHostnames f. DestinationUsername g. RequestUsername h. ClientIP Log Example: <RequestID>892c08a2-7859-40d3-b971-03e91050eb1e</RequestID> <GatewayHostname>[login to view URL]</GatewayHostname> <GatewayPort>4587</GatewayPort> <GatewayUsername>AD\aj</GatewayUsername> <DestinationHostnames>[login to view URL]</DestinationHostnames> <DestinationUsername>user@[login to view URL]</DestinationUsername>
Project ID: 18338855

About the project

1 proposal
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hey there I'm a System Admin with coding skills. I had coded tons of PowerShell scripts. I can help. Regards.
$30 USD in 1 day
4.9 (4 reviews)
2.5
2.5

About the client

Flag of UNITED STATES
Walton, United States
5.0
7
Payment method verified
Member since Oct 2, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.