记录数据被截断 [英] logging data truncated
问题描述
我必须在脚本以下,
并且一切似乎都有效,除非
如果我进入了主要IP和次要IP,具有这样的
数; 10.100.1.11或10.10.10.245我的IP的最后一个数字丢失
我的日志文件中的
(c:/tmp/myprimarylogs.xls)结果如你所知,''10 .100.1.1应该是10.100.1.11
和10.10.10.2应该是10.10.10.224我该如何解决这个问题?
我需要知道如何在下面的日志中添加时间:time.asctime()在我的IP旁边?
这是可以将每个结果都放在Excel文件(myprimarylogs.xls)中的正确列中,因为这些结果没有正确分开所有的purcentage将在A列上,所有IP在列B和列C中的时间。
Hi,
I have to below script,
and everything seems to work except
that if I entered the Primary IP and Secondaries IP, with such
number; 10.100.1.11 or 10.10.10.245 the last numbers of my IP are missing
in my logs file (c:/tmp/myprimarylogs.xls) Here is the result, you see, ''10.100.1.1 should be 10.100.1.11
and 10.10.10.2 should be 10.10.10.224 how can I resolve this issue ?
and I need to know How to add the time : time.asctime() beside my IP on below logs ?
is this possible to put every result with a proper column in Excel file (myprimarylogs.xls) as these result are not properly separate all the purcentage will be on column A, all the IP in column B and time in column C.
推荐答案
它是您在日志记录例程中使用的正则表达式:
It''s the regex that you are using in the logging routine:
您好Bartonc,
感谢确实改变了语法现在没问题。
a)我想把时间添加到我的日志中(参见第15和第16行),我确实尝试了几个组合的
但似乎没有工作
b)我如何在不同的列中添加不同类型的数据,在这种情况下,我的所有数据都进入A列,但我想要它:A = purcentage,B = IPss ,C = Excel电子表格中的时间?
Hi Bartonc,
thanks did changed the syntaxe now it is ok.
a)I would like to add the time to my logs( SEE line 15 and 16), I did tried
several combinaisons but does not seems to work
b)And how can I add the different type of data within a different column, in this case all my data goes into column A but I want it : A = purcentage, B=IPss, C = time within Excel spreadsheet ?
是有人可以帮帮我吗?
Brgds / Charlie
Hi,
Is someone can help me ?
Brgds/Charlie
这篇关于记录数据被截断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!