Ask Your Question
0

Printing captured packets in CSV file [closed]

asked 2021-11-24 10:01:54 +0000

Muhammed Sajid gravatar image

Hi, I am able to print all the packets data in PDF format.

But how can I do this task in CSV format?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Muhammed Sajid
close date 2021-11-25 13:07:08.853187

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-11-24 11:17:32 +0000

grahamb gravatar image

From the menu; File -> Export Packet Dissections -> As CSV ...

edit flag offensive delete link more

Comments

Hi, Graham,

Thanks for your reply.

I have exported the packets summary in CSV. But I want to export the data (Siemens PLC S7comm packets query, response) as well.

I can print this data in pdf, unfortunately not in csv.

Thanks.

Muhammed Sajid gravatar imageMuhammed Sajid ( 2021-11-24 11:34:16 +0000 )edit

Unfortunately CSV output can only use the columns displayed in the packet list. Either add the required items as columns or use one of the other formats, e.g. JSON.

grahamb gravatar imagegrahamb ( 2021-11-24 12:05:32 +0000 )edit

Hi,

How to add the below data in the columns?
I simply dragged the below data to columns, but I can only see a tick mark in the column.
S7 Communication Header: (Job) Parameter: (Read Var) Function: Read Var (0x04) Item count: 7 Item [1]: (DB 1.DBX 60.0 WORD 1) Item [2]: (DB 1.DBX 50.0 WORD 1) Item [3]: (DB 1.DBX 1018.0 WORD 1) Item [4]: (DB 1.DBX 910.0 DWORD 1) Item [5]: (M 0.2 BIT 1) Item [6]: (M 0.0 BIT 1)

Muhammed Sajid gravatar imageMuhammed Sajid ( 2021-11-24 13:17:00 +0000 )edit

I don't think you can use the "Item" elements as columns, there's no way to select which of the multiple items appears in the column.

I think you'll have to use a format other than csv. The problem with csv is that the output columns have to be known at the start, but the code only knows which columns to output once a packet has been dissected which is too late. Other formats such as JSON allow variable length "records" (and arrays of items) so don't suffer this problem.

grahamb gravatar imagegrahamb ( 2021-11-24 13:31:43 +0000 )edit

Hi, Ok

Could you please guide me on how to save this data in JSON format?

I believe I can convert the data from JSON to CSV later. Please let me know.

Muhammed Sajid gravatar imageMuhammed Sajid ( 2021-11-24 13:37:31 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2021-11-24 10:01:54 +0000

Seen: 513 times

Last updated: Nov 24 '21