I need to find all files with a specific string and tar them. I used the below syntax, but it's not working.

```
find . -iname '*.log' -exec grep -l 'abcdef' {} tar mytar.tar.gz -T - \;

```

And I don't want to use pipe syntax like below (for specific reasons)

```
find . -name '*.log' | xargs grep -l 'abcdef' | tar Mytar.tar.gz -T -

```

I need to use find with exec and grep each file and tar the resultant list of files.

Thanks