Hi All,
Thanks is advance This question is marked "community wiki". asked 20 Nov '13, 02:25 Kiran |
2 Answers:
I've done what you're trying to do, sort of. My approach was:
Now there are a couple things to caution on here:
answered 20 Nov '13, 19:20 Quadratic edited 20 Nov '13, 19:26 |
That's only possible with a code change. If you think you need that feature please file an enhancement 'bug' at https://bugs.wireshark.org. HOWEVER: You request sounds like you are trying to use tshark as a (real time, long term) network monitoring solution. That won't work, as neither Wireshark nor tshark have been developed with that goal in mind. There are well known problems (ever increasing memory usage and others), that will create problems if you run tshark/wireshark for a longer period of time (see other questions). What kind of statistics do you need? Maybe there are other solutions. Regards answered 20 Nov '13, 03:17 Kurt Knochner ♦ Hi Kurt, Thanks for quick answer. I am actually trying to simulate the behavior of IO Graph in wireshark. (It has 5 filters from which it can generate graphs updating after every few seconds. I don't know whether it is possible to add more filters to it. And I want to know whether Lua can be of any help regarding adding more filters in IOGraph of wireshark.) I want to actually do the same thing by sending data to a CSV file and plot in a browser. Regarding the size of the buffer, if i want to plot some kind of data say every 1 sec, it is sufficient it just stores upto 'n' sec(if it calculates the required data that required for the graph in that time) and do this in circular manner. Cos I don't require any more analysis than the graphs that I want to plot. I hope I made myself clear here. BRs, Kiran (20 Nov '13, 03:47) Kiran
clear enough to understand what you are trying to do ;-) However, as I mentioned you are (apparently) trying to use tshark as a real time, long term network monitoring solution. That's not going to work due to the way tshark/Wireshark was designed. Unless you need the 'power' of the Wireshark dissectors to extract some fields from an esoteric protocol, there might be better network (performance) monitoring tools available. Mr. google will help. If however, you need the 'magic power' of wireshark/tshark dissectors, I have bad news for you: You won't be able to implement what you are looking for with tshark/Wireshark. See the discussions with @hoangsonk49 about a similar problem:
Just for the records: What kind of filters do you use in IO graphs? (20 Nov '13, 08:06) Kurt Knochner ♦ Hi Kurt, Thanks again for your reply. My Filters are very simple. I am trying to see how much bandwidth my application is taking on some port and some ip -- which depends on my estimation algorithm. In turn i am validating my algorithm. I can actually do that offline also but i wan t to do that by plotting the data on a browser. The reason I am trying Wireshark is that some times i need to analyze data also. I don't want to use two tools for that purpose. And thanks for taking time in searching and giving those links which were helpful. BRs, Kiran (20 Nov '13, 22:15) Kiran |
Hi,
Its good to know somebody already tried and got success in similar thing that I want to do. :)
I also observed the same thing with "-z query immediately after dumpcap finishes".
Its ok i will manage writing my own code :).
I also used perl for getting my offline analysis which updates and plots in browser.
I think I will to try pcap directly and see what I can do with that.
Thank you for your feedback. I will getback when if I stuck again in something.
BRs, Kiran