Syslog Custom Format for Splunk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Syslog Custom Format for Splunk

L3 Networker

I'm trying to get the firewall to send before and after change detail to splunk. I've tried various formats in Custom Log Format, but any changes I make result in no logs being sent to splunk. What is the correct format for Custom Log Format when using syslog and splunk? I'm running PA OS 8.1

 

11 REPLIES 11

Cyber Elite
Cyber Elite

@MikeSangray2019,

Making a custom format shouldn't break sending the syslog to Splunk, are you sure that the logs aren't actually getting to Splunk at all? If you could share our format and the actual software version you are running we might be able to identify something. 

Logs are being shipped to Splunk. I'm following the directions to use custom formatting  'Enter the log format above. Click on the field names in the left panel to include them in the log format.' by clicking on the name, then commit, and then no more config logs after that change to use custom log formatting. Return to default and config logs start working again. Just confirmed again. Maybe something for tech support?

Hi Mike,

 

Did you get any resolution for this issue


Regards

Venky

 

No, I did not get a resolution for this.

Hi 

 

i'm facing same issue, If you dont mind did you raise it with support.

 

Regards

Venky

Sorry, I did not open a ticket with support for this.

Closer, but still seeing an issue.

 

Firewall config events are being parsed as pan:config, but without before and after change details. Other details are included, but before and after change details are both 0.

 

When I set a custom log format and test changing an object name on the firewall, the logs are parsed as pan:log (not pan:config) and I can see the change detail in the raw event message, but now I've lost the other fields since it was parsed as pan:log.

L0 Member

Frist Click the field names in the left board to remember them for the log design.' by tapping on the name, at that point submit, and afterward no more config logs after that change to utilize custom log organizing.

That's not working. As I noted in my update I have tried setting a custom log. Doing this changes the way the logs are parsed either with pan:config or pan:log. "When I set a custom log format and test changing an object name on the firewall, the logs are parsed as pan:log (not pan:config) and I can see the change detail in the raw event message, but now I've lost the other fields since it was parsed as pan:log."

 

Does anyone have this working? I want to believe this is just something with my config that I can fix, but I haven't seen many posts that this works for others.

L3 Networker

Working on this again, still no change in behavior.

Does anyone know if this has been addressed in any 9.1 or 10.x releases?

The log format changes based on if Default logging or Custom Format is used, so the sourcetype isn't set correctly (Splunk).

 

DEFAULT (sourcetype is set to pan:config, this is correct and working, but no before/after change detail)

<14>Aug 15 14:06:53 PA-1 1,2022/08/15 14:06:53,016201015409,CONFIG,0,0,2022/08/15 14:06:53,192.168.1.10,,edit,adminacct,Web,Succeeded, vsys vsys1 address configlog_testobj,24838,0x0,0,0,0,0,,PA-AMA-Pri,0,

 

CUSTOM FORMAT (sourcetype is set to pan:log, the before/after change detail is present, but the sourcetype is wrong)
<14>Aug 15 14:18:57 PA-1 0x0 adminacct "configlog_testobj { description ""test change 90""; } " "configlog_testobj { description ""test change 80""; } " Aug 15 2022 19:18:57 GMT Aug 15 2022 19:18:57 GMT Web edit PA-AMA-Pri 192.168.1.10 vsys vsys1 address configlog_testobj 2022/08/15 14:18:57 Succeeded 9.1.12-h3 24843 016201015409 0 2022/08/15 14:18:57 CONFIG

Cant you just add the other fields you need in the Custom log Format?

 

actionflags="$actionflags", admin="$admin", after-change-detail="$after-change-detail", before-change-detail="$before-change-detail", cef-formatted-receive_time="$cef-formatted-receive_time", cef-formatted-time_generated="$cef-formatted-time_generated", client="$client", cmd="$cmd", host="$host", path="$path", receive_time="$receive_time", result="$result", seqno="$seqno", serial="$serial", subtype="$subtype", time_generated="$time_generated", type="$type", vsys="$vsys"

  • 8010 Views
  • 11 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!