Help with multi line csv

Csupi003
Wed, 26 Jul 2023 08:18:59 +0000
Telegraf

Hi,

I have a multi line csv file and I’m struggling with the parsing.

This is how the csv looks like separated by ,
name,disk,status
ssacli,1E:1:1,1
ssacli,1E:1:2,1
ssacli,1I:1:1,1
ssacli,1I:1:24,0
ssacli,1I:1:25,2

In a query I want to select all or specified disks and next to it show the status or the other way around, selecting the status for example 1 and show all the disks which have status 1.

Is there anyone who could help me?

Thanks in advance,

5 posts - 2 participants