Find Jobs
Hire Freelancers

Develop Small PowerShell Script to Parse Log Files

$10-30 USD

Đã hoàn thành
Đã đăng vào hơn 5 năm trước

$10-30 USD

Thanh toán khi bàn giao
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>
Mã dự án: 18338855

Về dự án

1 đề xuất
Dự án từ xa
Hoạt động 5 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
Đã trao cho:
Avatar người dùng
Hey there I'm a System Admin with coding skills. I had coded tons of PowerShell scripts. I can help. Regards.
$30 USD trong 1 ngày
4,9 (4 nhận xét)
2,5
2,5

Về khách hàng

Cờ của UNITED STATES
Walton, United States
5,0
7
Phương thức thanh toán đã xác thực
Thành viên từ thg 10 2, 2017

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.