Skip to main content
Question

I need to drop computer account name ending with $ sign

  • March 11, 2025
  • 22 replies
  • 4 views

I need to drop computer account name ending with $ sign,the Drop function is not recognizing itany suggestion for alternate way of dropping all "computer-name$" ??

22 replies

Forum|alt.badge.img
  • Participating Frequently
  • March 11, 2025

You're aware that the Drop function drops the whole event?


  • Author
  • Known Participant
  • March 11, 2025

Yes, i want to drop such whole event meeting filter as shown in screenshot


Forum|alt.badge.img
  • Participating Frequently
  • March 11, 2025

Try to wrap the $ in double quotes


  • Author
  • Known Participant
  • March 11, 2025

the problem is that the filter is not meeting ---i need to match with all Account_Name fields which ends with $ i.e. all computer account


  • Author
  • Known Participant
  • March 11, 2025

i did the "$" did not work


Forum|alt.badge.img
  • Participating Frequently
  • March 11, 2025

Oh wait, Account_Name is not a string but a list


  • Author
  • Known Participant
  • March 11, 2025

another observation is that Acccount_Name field has 2 values as shown in the first screenshot


Forum|alt.badge.img
  • Participating Frequently
  • March 11, 2025

Add a [0] after Account_Name


  • Author
  • Known Participant
  • March 11, 2025

can you show me that with screenshot of the exact syntax


Forum|alt.badge.img
  • Participating Frequently
  • March 11, 2025

No, I'm on mobile phone :smirk:


David Maislin

Do you want to remove the values that contain a $ at the end of the array element? What if the second value contains the $? Or are you looking to drop the entire event if any of the values in the array end with a $?


David Maislin

The Account_Name.includes('$') will simply check if $ exists anywhere in only the first item in the array, i.e. Account_Name[0]. What if it is Account_Name[1], etc.?


Forum|alt.badge.img
  • Participating Frequently
  • March 11, 2025

My understanding was that if the Account Name has a $, all values have it


Forum|alt.badge.img
  • Participating Frequently
  • March 11, 2025

:grinning:


David Maislin

Thought I would get fancy...


David Maislin

ChatGPT FTW!


David Maislin

TIL about bind and !!


David Maislin

Here Account_Name would have a `-` and `SETEST$`


Forum|alt.badge.img
  • Participating Frequently
  • March 11, 2025

I've checked some Windows events now. We see array with 2 Values on Specific events like 4703 where there is Account Name under 'Subject' and Under 'Target Account


Forum|alt.badge.img
  • Participating Frequently
  • March 11, 2025

the pack that transforms classic to JSON, puts both value under Account_Name


David Maislin

Yes, those are sample events I include with the pack, but some real events show that Account_Name can have two different values, and they are not always the same, sometimes one value is `-` and another ends with `$`, etc.


Forum|alt.badge.img
  • Participating Frequently
  • March 11, 2025

Yes