# How to convert a splunk transform into logstash

**URL:** <https://discuss.elastic.co/t/how-to-convert-a-splunk-transform-into-logstash/65905>\
**Category:** Logstash\
**Created:** [November 13, 2016, 12:20pm UTC](https://discuss.elastic.co/t/how-to-convert-a-splunk-transform-into-logstash/65905 "2016-11-13T12:20:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rolfberkenbosch](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rolfberkenbosch](https://discuss.elastic.co/u/rolfberkenbosch)\
**Post date:** [November 13, 2016, 12:20pm UTC](https://discuss.elastic.co/t/how-to-convert-a-splunk-transform-into-logstash/65905/1 "2016-11-13T12:20:21Z")

</div>

Hi all,

I have the following in the transform.conf of splunk:

REGEX = ([a-z]+)=([a-z]+)  
FORMAT = $1::$2

What is bassicly does is convert the following search:  
device="SFW" date=2016-11-13 time=12:53:08 timezone="CET" device\_name="SFVUNL" device\_id=C0100999CRJ6G4W log\_id=010101600001 log\_type="Firewall" log\_component="Firewall Rule" log\_subtype="Allowed" status="Allow" priority=Information duration=10 fw\_rule\_id=8 policy\_type=1 user\_name="" user\_gp="" iap=0 ips\_policy\_id=0 appfilter\_policy\_id=0 application="Secure Socket Layer Protocol" application\_risk=1 application\_technology="Network Protocol" application\_category="Infrastructure" in\_interface="PortA" out\_interface="" src\_mac=00: 0:00: 0:00: 0 src\_ip=10.222.8.22 src\_country\_code=R1 dst\_ip=5.22.252.186 dst\_country\_code=NLD protocol="TCP" src\_port=21473 dst\_port=443 sent\_pkts=8 recv\_pkts=7 sent\_bytes=2725 recv\_bytes=2295 tran\_src\_ip= tran\_src\_port=0 tran\_dst\_ip=10.222.8.1 tran\_dst\_port=8080 srczonetype="LAN" srczone="LAN" dstzonetype="WAN" dstzone="WAN" dir\_disp="" connevent="Stop" connid="2960042848" vconnid="" hb\_health="No Heartbeat"

Into  
field = value

like  
field:device value:SFW  
field:date value:2016-11-13  
field:time value:12:53:08  
etc. etc.

Is this possible with logstash ?

Thanks!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 13, 2016, 10:51pm UTC](https://discuss.elastic.co/t/how-to-convert-a-splunk-transform-into-logstash/65905/2 "2016-11-13T22:51:00Z")

</div>

Yep, check out [https://www.elastic.co/guide/en/logstash/current/plugins-filters-kv.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-kv.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 11, 2016, 10:51pm UTC](https://discuss.elastic.co/t/how-to-convert-a-splunk-transform-into-logstash/65905/3 "2016-12-11T22:51:05Z")

</div>

Closed on December 11, 2016, 10:51pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
