-
|
Hello Malcolm community, The tool is amazing, I love it and it could be a perfect pcap library. The only issue I have is to delete a session, if I follow the arkime documentation, there is a arkime-delete binary we can use to delete and clean a session using tags and that is perfect, but when I'm on Malcolm in the Arkime container I don't have this command. So my question is how to delete session and pcap based on tags please? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 4 replies
-
|
I found that in the internal documentation but where is this privilege settings, I'm login as admin so I must have. And where is the button?
|
Beta Was this translation helpful? Give feedback.
-
|
In fact I have just that so must be a privilege to activate, but I'm admin.
|
Beta Was this translation helpful? Give feedback.
-
|
I found that in user_settings.json, let's test...
|
Beta Was this translation helpful? Give feedback.
-
|
Maybe it's not the good way to do, if the user tab is not available, all must be manage by another functionnality, but the user malcolm page is very limited and it's not possible to add or remover privilege. So how to delete sessions / pcap based on tags? |
Beta Was this translation helpful? Give feedback.
-
|
In fact the best solution could be to apply the role superAdmin on Arkime to the user admin of Malcolm. Is it possible? |
Beta Was this translation helpful? Give feedback.
-
|
Unless you're using role-based access control with Keycloak in Malcolm, your user does have admin access: it's just that Malcolm manages user accounts at a higher level than Arkime, which is why some of the user-management stuff in Arkime is not available in Malcolm (in other words, you manage user accounts at the Malcolm level, not the arkime level). As far as the deleting of data in Malcolm goes, here are some options. Automatic storage managementMalcolm can be configured to make sure you don't run out of disk space, see Managing Disk Usage. To delete everything (wipe Malcolm sessions and PCAP back to a clean state)./scripts/wipeTo delete indexes (i.e., sessions)
To delete PCAPMalcolm doesn't surface an option in the UI to delete PCAP, but you can delete PCAP manually by just removing the PCAP file from within your $ grep -B 1 "target: /pcap" docker-compose.yml
source: ./pcap
target: /pcap
...
$ ls -l ./pcap/processed/
total 2,936,516,608
-rw-r--r-- 1 user user 1,190,578 Jan 29 14:18 NBSITEID0,09ffabf7774a43a38c9768f2046fd385.pcap
-rw-r--r-- 1 user user 363,986 Jan 29 14:18 NBSITEID0,0e328ab712b248438717a5b3ebef33a8.pcap
-rw-r--r-- 1 user user 223,799 Jan 29 14:08 NBSITEID0,110378724.pcap
-rw-r--r-- 1 user user 14,794,470 Jan 29 14:08 NBSITEID0,114019667.pcap
-rw-r--r-- 1 user user 6,708,630 Jan 29 14:09 NBSITEID0,116070525.pcap
-rw-r--r-- 1 user user 6,375,002 Jan 29 14:09 NBSITEID0,117922543.pcap
-rw-r--r-- 1 user user 15,528 Jan 29 14:09 NBSITEID0,120903667.pcap
...
$ rm ./pcap/processed/NBSITEID0,110378724.pcap |
Beta Was this translation helpful? Give feedback.
-
|
Hello mmguero, thank you very much, I have deleted some index and it's working perfectly. I have three questions remaining if you can give me advice: 1- Is it possible to modify the tags also using opensearch? |
Beta Was this translation helpful? Give feedback.
-
|
With Keycloak as your auth method (you can use Malcolm's embedded keycloak instance) I believe your user can have the permissions to remove things from within the Arkime interface. Without Keycloak, I think I know how to allow your user to delete things via the Arkime interface (full disclosure, haven't tested but looking at the source code):
At this point you'd have to wipe malcolm to a blank slate (so Arkime will recreate the user from scratch) with If you only have one user account (the one that you create with |
Beta Was this translation helpful? Give feedback.







Unless you're using role-based access control with Keycloak in Malcolm, your user does have admin access: it's just that Malcolm manages user accounts at a higher level than Arkime, which is why some of the user-management stuff in Arkime is not available in Malcolm (in other words, you manage user accounts at the Malcolm level, not the arkime level).
As far as the deleting of data in Malcolm goes, here are some options.
Automatic storage management
Malcolm can be configured to make sure you don't run out of disk space, see Managing Disk Usage.
To delete everything (wipe Malcolm sessions and PCAP back to a clean state)
To delete indexes (i.e., sessions)