Ask Your Question

person_with_account's profile - activity

2023-06-15 18:00:42 +0000 received badge  Popular Question (source)
2023-04-13 18:02:21 +0000 commented answer In Tshark's JSON output, why are fields single-value arrays?

Thank you, very complete answer

2023-04-13 17:59:40 +0000 marked best answer In Tshark's JSON output, why are fields single-value arrays?

I noticed that in JSON outputs -T json or -T ek, all fields will be an array with 1 value:

  {
    "_index": "packets-[redacted]",
    "_type": "doc",
    "_score": null,
    "_source": {
      "layers": {
        "frame.number": [
          "1"
        ],
        "frame.time": [
          "[redacted]"
        ],
        "eth.src": [
          "[redacted]"
        ],
        "eth.dst": [
          "[redacted]"
        ],
        "ip.src": [
          "[redacted]"
        ],
        "ip.dst": [
          "[redacted]"
        ],
        "ip.proto": [
          "6"
        ]
      }
    }
  },

etc

So my questions are:
1) What exactly are "layers" in this context?
2) Why is each field an array of one value (as opposed to not being an array)?

2023-04-13 17:59:40 +0000 received badge  Scholar (source)
2023-04-03 11:43:49 +0000 commented question In Tshark's JSON output, why are fields single-value arrays?

TShark (Wireshark) 4.0.4 (v4.0.4-0-gea14d468d9ca) on macOS (AARCH64) tshark -r [some pcap] -T json -e frame.number -e

2023-04-03 11:43:17 +0000 commented question In Tshark's JSON output, why are fields single-value arrays?

TShark (Wireshark) 4.0.4 (v4.0.4-0-gea14d468d9ca) on macOS (AARCH64) tshark -r [some pcap] -T json -e frame.number -e

2023-03-31 18:06:45 +0000 asked a question In Tshark's JSON output, why are fields single-value arrays?

In Tshark's JSON output, why are fields single-value arrays? I noticed that in JSON outputs -T json or -T ek, all fields

2023-03-31 18:06:44 +0000 asked a question In tshark's JSON output, why are fields arrays?

In tshark's JSON output, why are fields arrays? I noticed that in JSON outputs -T json or -T ek, all fields will be an a