Getting the number of rows to appear on each line in a kql query?

Paul Misner 0 Reputation points
2023-04-25T16:47:28.88+00:00

Hello, I'm trying to find a way to enter the number of lines a KQL query in each row of the results in Microsoft Sentinel. This would be equivalent to having count() on each line. Thank you in advance for any help you can provide. | MachineName|IP|NumberOfMachines| | -------- | -------- | -------- | |Homer |192.168.1.100|3| |Marge |192.166.1.101|3| |Lisa|192.168.102|3|

Microsoft Security Microsoft Sentinel
{count} votes

2 answers

Sort by: Most helpful
  1. Clive Watson 7,866 Reputation points MVP Volunteer Moderator
    2023-04-25T20:14:57.13+00:00

    Sorry, can you clarify the questions please?

    datatable (MachineName:string,IP:string,NumberOfMachines:int) 
    [
    "Homer" ,"192.168.1.100",3, 
    "Marge" ,"192.166.1.101",3,
    "Lisa","192.168.102",3]
    
    

    I think your data looks like this above example, and displays like the below screenshot?

    What part are you trying to count?

    User's image

    1 person found this answer helpful.

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.