New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Log Analyze Feature to TlmExtractor/CmdExtractor #336

Closed
ryanatball opened this Issue Sep 26, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@ryanatball
Member

ryanatball commented Sep 26, 2016

I frequently end up writing little scripts to read through log files and see what packets are actually within them. Add a new feature to TlmExtractor and CmdExtractor that will do exactly that and present the user with a dialog that shows what packets are present in a log file and how many of each packet exists.

@ryanatball ryanatball added the feature label Sep 26, 2016

@ryanatball

This comment has been minimized.

Show comment
Hide comment
@ryanatball

ryanatball Sep 26, 2016

Member

Here is a little command line script that will do this, GUI will be similar:

require 'cosmos'
require 'cosmos/packet_logs/packet_log_reader'

counts = {}

plr = Cosmos::PacketLogReader.new
plr.each(ARGV[0]) do |packet|
  counts["#{packet.target_name}_#{packet.packet_name}"] ||= 0
  counts["#{packet.target_name}_#{packet.packet_name}"] += 1
end

counts.each do |name, count|
  puts "#{name}: #{count}"
end
Member

ryanatball commented Sep 26, 2016

Here is a little command line script that will do this, GUI will be similar:

require 'cosmos'
require 'cosmos/packet_logs/packet_log_reader'

counts = {}

plr = Cosmos::PacketLogReader.new
plr.each(ARGV[0]) do |packet|
  counts["#{packet.target_name}_#{packet.packet_name}"] ||= 0
  counts["#{packet.target_name}_#{packet.packet_name}"] += 1
end

counts.each do |name, count|
  puts "#{name}: #{count}"
end

@donaldatball donaldatball self-assigned this May 5, 2017

donaldatball added a commit that referenced this issue May 9, 2017

donaldatball added a commit that referenced this issue May 9, 2017

re #336 Change log analysis feature so that it is started from a file…
… menu action instead of a front-panel button

donaldatball added a commit that referenced this issue May 9, 2017

re #336 Update autohotkey scripts to account for changes made to the …
…ScrollTextDialog to make it auto-size itself
@donaldatball

This comment has been minimized.

Show comment
Hide comment
@donaldatball

donaldatball May 9, 2017

Collaborator

Closed with d61332c

Collaborator

donaldatball commented May 9, 2017

Closed with d61332c

@ryanatball ryanatball modified the milestone: v3.9.2 May 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment