shrink event log file

114 views
Skip to first unread message

a...@cs.nott.ac.uk

unread,
Feb 3, 2010, 1:07:42 PM2/3/10
to omn...@googlegroups.com
Hii everybody,

I need to shrink the event log file; the output file is too big and with
useless information I do not need like the ones below (i.e. SH, ES, DM,
etc.). Does anybody know how not to save such information??? Thank you very
much, Adriano

SH sm 1629 sg 3
ES t 35678.170073725942
DM id 154731436 pe 293542067

E # 293542068 t 35678.170073725942 m 1301 ce 293541956 msg 154731437 BS id
154731548 tid 154649477 eid 154640893 etid 154640452 c Mac80211Pkt n
nodenumber2 k 23003 l 1008

Ester Lopez

unread,
Feb 3, 2010, 6:24:35 PM2/3/10
to omn...@googlegroups.com
You could use a shell scritp to get the lines you are interested on if they have something in common (like the ones that start with ES or something like that). Like for instance i have shell script that from a vec file, prints all the vectors you have, and then you select wich ones do you want to save, and stuff like that.


--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.


Andras Varga

unread,
Feb 4, 2010, 1:59:55 AM2/4/10
to omn...@googlegroups.com
Check the "Eventlog" chapter of the manual.
http://www.omnetpp.org/doc/omnetpp40/manual/usman.html#sec365
You can restrict the event log by modules and by time intervals, and you can
record more or less of messages' fields.
There is also an "eventlogtool" with filtering capacity.

BS, SH and ES record message sendings, and make it possible for the sequence
chart tool to draw the arrows. What is it that you'd like to get recorded,
and what not?

Andras

Hii everybody,

--

a...@cs.nott.ac.uk

unread,
Feb 4, 2010, 5:27:39 AM2/4/10
to omn...@googlegroups.com
Basically I don not want to record information like BS, SH, ES etc.
they are taking too much memory space and I do not need them.
What shall I do so that I do not record such information? Any example?

Thank you very much,
ADriano

a...@cs.nott.ac.uk

unread,
Feb 4, 2010, 5:30:58 AM2/4/10
to omn...@googlegroups.com
The point is that I do want to record such information because they are
taking too much memory space (85GB)... I need not to record them... any
idea?

cheers,
ADriano

On Feb 3 2010, Ester Lopez wrote:

> You could use a shell scritp to get the lines you are interested on if
> they have something in common (like the ones that start with ES or
> something like that). Like for instance i have shell script that from a
> vec file, prints all the vectors you have, and then you select wich ones
> do you want to save, and stuff like that.
>
> 2010/2/4 <a...@cs.nott.ac.uk>
>

> > Hii everybody,
> >
> > I need to shrink the event log file; the output file is too big and
> > with useless information I do not need like the ones below (i.e. SH,
> > ES, DM, etc.). Does anybody know how not to save such information???
> > Thank you very much, Adriano
> >
> > SH sm 1629 sg 3
> > ES t 35678.170073725942
> > DM id 154731436 pe 293542067
> >
> > E # 293542068 t 35678.170073725942 m 1301 ce 293541956 msg 154731437
> > BS id 154731548 tid 154649477 eid 154640893 etid 154640452 c
> > Mac80211Pkt n nodenumber2 k 23003 l 1008
> >

> > -- You received this message because you are subscribed to the Google
> > Groups "omnetpp" group. To post to this group, send email to
> > omn...@googlegroups.com. To unsubscribe from this group, send email to

> > omnetpp+u...@googlegroups.com<omnetpp%2Bunsu...@googlegroups.com>
> > . For more options, visit this group at
> > http://groups.google.com/group/omnetpp?hl=en.
> >
> >
>
>

Levente Mészáros

unread,
Feb 4, 2010, 6:24:14 AM2/4/10
to omn...@googlegroups.com
On Thu, Feb 4, 2010 at 11:30 AM, <a...@cs.nott.ac.uk> wrote:
> The point is that I do want to record such information because they are
> taking too much memory space (85GB)... I need not to record them... any
> idea?
You cannot simply remove random lines from an event log file, because
there are certain constraints that must be kept. Anyway, not recording
BS, SH, ES lines would defeat the most important point of event log
files, namely the Sequence Chart in the IDE.

You can configure the event log file recording to record only certain
simulation time intervals, or specific modules. This would
dramatically reduce the file size. You can filter the file with the
eventlogtool after the simulation has been finished. You may even use
your own tool, but make sure that only whole events are filtered out.

Without knowing your goals, why and how are you using the event log
file (e.g. debugging, understanding the model, generating
documentation), it is pretty hard to tell how can you reduce the file
size and still get what you need.

levy

ps: I assume the 85GB means disk space as opposed to memory space

--
There's no perfectoin

Reply all
Reply to author
Forward
0 new messages