cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Get the error details from a file.

sadiya-sultana
Deputy Chef I
Deputy Chef I

How to get a particular line of message from a text file.

5 REPLIES 5

max-knutsson
Workato employee
Workato employee

So you are trying to search a file content for specific error message? like a text .log file or .csv?

sadiya-sultana
Deputy Chef I
Deputy Chef I

it's saved as xyz.txt

about 3000 lines

ajorde
Deputy Chef II
Deputy Chef II

You could split the csv file contents by new line character and then pull the line that you want - if you're searching for certain messages, you can potentially do a gsub on the contents and use a regular expression to find the matching lines. I think we'd need to know more about the scenario though in order to help further.

bcastro
Deputy Chef I
Deputy Chef I

You can use https://regex101.com/library to create your regex