Please follow Following step:
1)create new column where you can store Id of created by. 2)now apply workflow on that list 3)in that workflow set the value new column field to Id of created by.
Let me know if any issue form.
Out of the box this is not possible, but here is a workaround.
- Create a new People Picker or Text column into the list.
- Create a SharePoint Designer workflow and trigger it when new item is added.
- In Workflow, update the same item and set the ID of the created by field to the newly created column.
This will work as expected.
Let me know if you need any more detailed information.