Sack credit/fault

I still struggle with one piece of data reporting in the box scores.
Sacks Allowed.
I feel like more sacks should be pinned on the linemen, because I see games with 7-8 sacks for a defense, but only 2 are credited as sacks allowed by the o-line.
What is the logic on this?
Sacks Allowed.
I feel like more sacks should be pinned on the linemen, because I see games with 7-8 sacks for a defense, but only 2 are credited as sacks allowed by the o-line.
What is the logic on this?