Hello Team,
Could anyone please let me know how to read performance logs. Is there any function available?
There is a requirement to download performance logs to another file and upload them to another server.
I have tried a couple of them, but it doesnt read the content of it..readcsvlog(csvPath: "engine_summary-1.csv")
Looking forward for some response.
Thanks in advance,
Divya
Discussion posts and replies are publicly visible
Hi Divya - what version of Appian are you running and are you referring to the functions offered up by the Log Reader plug in ?
I'm using Log Reader functions in 18.2 and they pull back data all ok - you have to specify all optional inputs though if you want to use one optional input (even if null - in my experience)
readcsvlogpaging(csvPath, startIndex, batchSize, filterColumName, filterOperator, filterValue, timestampColumnName, timestampStart, timestampEnd)
Hi, could you share how does the code look like if you want to filter by timestamp? I tried doing so and the filter is not actually applying. Any help is appreciated.
Hi
This is my code - hopefully you can adapt it
timestampColumnName: "Timestamp", timestampStart: now() - intervalds( local!hours, 0, 0 ), timestampEnd: now()
The column name for Timestamp is case sensitive so best to check what it is called on the file you want to look at. I pass in a value which if blank, local!hours defaults to 2 so I get the last two hours of activity from that file.
Hope this helps ?
Cheers
Paul
Hi,
Is this code still working, when I tried it just gives the columns names from file.