Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

How to get the machine name from the log

$
0
0

Hi All,

I'm trying to get the machine name out from the log so that I can directly work on that particular machine. I'm able to filter out the error logs that I wanted to check, just want a command to get me machine name from below string. Below are the log message looks like:

[2014-12-08 10:15:04,638] [WARNING] Client SGQARWN16846A1(2811,1182,0,) reported: Backup failed. Error: Quota limit reached. (#10000000e)

[2014-12-09 14:30:37,303][WARNING] Client DEBANCDW5952247(2947,1103,0,)  reported: Backup failed. Error: Quota limit reached. (#10000000e)

 which SGQARWN16846A1 and DEBANCDW5952247 is machine name.

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles