# files.log need to add id \[orig\_h,p and resp\_h,p\]

**URL:** <https://community.zeek.org/t/files-log-need-to-add-id-orig-h-p-and-resp-h-p/4631>\
**Category:** Zeek\
**Created:** [January 31, 2017, 12:29pm UTC](https://community.zeek.org/t/files-log-need-to-add-id-orig-h-p-and-resp-h-p/4631 "2017-01-31T12:29:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ps\_sunu](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@ps\_sunu](https://community.zeek.org/u/ps_sunu)\
**Post date:** [January 31, 2017, 12:29pm UTC](https://community.zeek.org/t/files-log-need-to-add-id-orig-h-p-and-resp-h-p/4631/1 "2017-01-31T12:29:25Z")

</div>

Hi,  
I need to add id [orig\_h,orig\_p, resp\_h, resp\_p] in files.log , so i tried to  
add the content into opt/bro/share/bro/base/frameworks/files/main.bro but its not accepting.

I added below code into main.bro

id: conn\_id &log;

and

function set\_info(f: fa\_file)  
{  
if ( ! f?$info )  
{  
local tmp: Info = Info($ts=f$last\_active,$fuid=f$id,$id=f$conns);

f$info = tmp;  
print “test”,f$conns;  
}

any other way to do this , ??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:44pm UTC](https://community.zeek.org/t/files-log-need-to-add-id-orig-h-p-and-resp-h-p/4631/2 "2022-05-06T15:44:34Z")

</div>


