You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you have documentation for creating ripgrep-all adapters?
I would like to have a ripgrep adapter for wireshark files (.pcap, .pcapng, etc). A general purpose adapter would have to be highly configurable, but in my case, I generally convert to text using this command: tshark -V -Y "(ngap || nas-5gs || s1ap || sip || diameter)" -r ${wireshark_file_name}
A general purpose adapter could just use tshark -V -r ${wireshark_file_name}.
An even more general purpose adapter could allow you to specify the following parameters: RGA_USER_ADAPTER=${path_to_executable} RGA_USER_ADAPTER_FLAGS=${flags}
As in ... RGA_USER_ADAPTER=/usr/bin/tshark RGA_USER_ADAPTER_FLAGS="-V -r {}"
or ... RGA_USER_ADAPTER_FLAGS="-V -Y \"(ngap || nas-5gs || s1ap || sip || diameter)\" -r {}"
Note also that there do exist some rust pcap libraries...
It would be possible to allow external plugins etc via a config file and just let it run arbitrary external commands, but so far my approach has been to "keep it close" so I can ensure the quality / performance stays high, especially for file types where there exist rust libraries.
Starting with 1.0.0, it's possible to add custom adapters via the config file. If someone has a good suggestion for this file type please post it in show-your-adapter
Do you have documentation for creating ripgrep-all adapters?
I would like to have a ripgrep adapter for wireshark files (.pcap, .pcapng, etc). A general purpose adapter would have to be highly configurable, but in my case, I generally convert to text using this command:
tshark -V -Y "(ngap || nas-5gs || s1ap || sip || diameter)" -r ${wireshark_file_name}
A general purpose adapter could just use
tshark -V -r ${wireshark_file_name}
.An even more general purpose adapter could allow you to specify the following parameters:
RGA_USER_ADAPTER=${path_to_executable}
RGA_USER_ADAPTER_FLAGS=${flags}
As in ...
RGA_USER_ADAPTER=/usr/bin/tshark
RGA_USER_ADAPTER_FLAGS="-V -r {}"
or ...
RGA_USER_ADAPTER_FLAGS="-V -Y \"(ngap || nas-5gs || s1ap || sip || diameter)\" -r {}"
Note also that there do exist some rust pcap libraries...
The text was updated successfully, but these errors were encountered: