How to insert delimiters


first let me apologies if have asked question in incorrect forum, if please direct me proper forum.

second, in solving dilemma.

i have never used batch files or scripts before , use direction in how solve question in layman's terms understand it.

i have log file needs imported excel, , there lot of data needs prepped before being imported such delimiters , guess call line breaks. there are multiple pages log.  see example: " a" raw data. which small example of amount of data. in example: "b" organized data you find how data should organizes before import excel can see length of strings inconsistent, due data. data comes out in 1 long line of text. question how example a, example b. using windows 10 office 365.

example: a  

[site allowed: ping.chartbeat.net] source 192.168.1.2, monday, jan 30,2017 20:00:59 [site allowed: trc.xxxxxx.com] source 192.168.1.2, monday, jan 30,2017 20:00:52 [site allowed: xxx.xxxxxx.xxx.net] source 192.168.1.2, monday, jan 30,2017 20:00:44 [site allowed: xxx.xxxx.com] source 192.168.1.2, monday, jan 30,2017 20:00:38 [site allowed: xxxx.xxxxxxx.net] source 192.168.1.2, monday, jan 30,2017 19:59:59 [site allowed: xxx.xxx.com] source 192.168.1.2, monday, jan 30,2017 19:59:53 [site allowed: xxx.xxxxxxx.com] source 192.168.1.2, monday, jan

example: "b"

xxx.xxxxx.net | 192.168.1.2, | monday, jan 30,2017 | 20:00:59

xxx.xxxxxxx.com| 192.168.1.2, | monday, jan 30,2017 | 20:00:52

xxxx.xxxxx.com | 192.168.1.2,| monday, jan 30,2017 | 20:00:44

xxx.xxx.com  | 192.168.1.2, | monday, jan 30,2017 | 20:00:38xxxx.xxxxxx.net] | 192.168.1.2, | monday, jan 30,2017 | 19:59:59

xxx.xxx.com]  | 192.168.1.2, |  monday, jan 30,2017 | 19:59:53

xxx.xxxx.com] |192.168.1.2, | monday, jan 30,2017 | 19:59:52

admin login | 192.168.1.2, | monday, jan 30,2017 | 22:02:55

admin login failure | 192.168.1.2, | monday, jan 30,2017 | 22:02:30

email sent xxxxxxxx.@cox.net |monday, jan 30,2017 | 22:01:01

 

 


you need find knows powershell or other language work on this. forum not writing free scripts.  specific questions powershell scripting , not support batch or other tools.

i suggest analysis of log files incorrect.  first appears in unix text format , second in windows although appears damages or have copied incorrectly.

without knowledge of technical windows , data not find much  success here.  consultant competent consultant able correctly analyze isse , assist in finding or creating tool.


\_(ツ)_/



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file